/* Aey's Haven — Blog Theme */
/* Monochrome dark with warm gray accents */

:root {
    --bg: #121212;
    --bg-card: #1a1a1a;
    --bg-hover: #222222;
    --bg-input: #1e1e1e;
    --text: #d4d4d4;
    --text-muted: #888888;
    --text-faint: #555555;
    --accent: #c8956c;
    --accent-hover: #daa882;
    --border: #2a2a2a;
    --border-light: #333333;
    --tag-bg: #1e1e1e;
    --tag-border: #3a3a3a;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Layout */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Header */
.blog-header {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.blog-header .container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
}

.blog-title:hover {
    color: var(--accent);
}

.blog-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.blog-nav a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.blog-nav a:hover {
    color: var(--text);
}

/* Search */
.search-container {
    margin-bottom: 2.5rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input::placeholder {
    color: var(--text-faint);
}

.search-input:focus {
    border-color: var(--accent);
}

/* Tag filter bar */
.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-filter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-filter:hover, .tag-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

/* Post listing */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.post-item {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.post-item:first-child {
    border-top: 1px solid var(--border);
}

.post-item:hover .post-title {
    color: var(--accent);
}

.post-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.post-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s ease;
    line-height: 1.4;
}

.lang-flags {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.lang-flag {
    font-size: 0.85rem;
    opacity: 0.7;
    text-decoration: none;
}

.lang-flag:hover {
    opacity: 1;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

.post-meta .author {
    color: var(--text-muted);
}

.post-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.post-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 3px;
    color: var(--text-faint);
}

/* Single post */
.post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.post-header .post-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-header .post-meta {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.post-content h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin: 2rem 0 0.8rem;
    color: var(--text);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.post-content figure {
    margin: 1.5rem 0;
    text-align: center;
}

.post-content figcaption {
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-top: 0.5rem;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-content strong {
    font-weight: 600;
    color: var(--text);
}

.post-content em {
    font-style: italic;
}

.post-content sup {
    font-size: 0.75em;
}

/* Post footer */
.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Footer */
.blog-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-faint);
    font-size: 0.8rem;
}

/* Info page */
.info-section {
    margin-bottom: 2.5rem;
}

.info-section h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.info-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.contact-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-faint);
    min-width: 120px;
}

.contact-value {
    font-size: 0.9rem;
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-faint);
    font-size: 0.95rem;
}

/* Responsive adjustments for desktop narrow */
@media (max-width: 900px) {
    .container { padding: 0 1.5rem; }
    .container-wide { padding: 0 1.5rem; }
}
