/* aithre.ai — minimal, clean, mathematical */

:root {
    --fg: #e0e0e0;
    --fg-dim: #888;
    --bg: #0a0a0c;
    --bg-surface: #111114;
    --accent: #7eb8da;
    --accent-dim: #4a7a96;
    --border: #1e1e24;
    --font-body: 'Georgia', 'Times New Roman', serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --max-width: 640px;
}

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.nav-home {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--accent);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--fg-dim);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--fg);
}

/* Main content */
main {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    flex: 1;
}

/* Homepage */
.intro {
    margin-top: 4rem;
}

.intro h1 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--fg);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.intro p {
    color: var(--fg-dim);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.intro .tagline {
    font-style: italic;
    color: var(--accent-dim);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Post list */
.post-list {
    list-style: none;
    margin-top: 2rem;
}

.post-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.post-list a {
    text-decoration: none;
    color: var(--fg);
    display: block;
}

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

.post-list .post-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.post-list .post-date {
    font-size: 0.8rem;
    color: var(--fg-dim);
}

.post-list .post-excerpt {
    font-size: 0.85rem;
    color: var(--fg-dim);
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Article */
article {
    margin-top: 1rem;
}

.post-header h1 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-header time {
    font-size: 0.8rem;
    color: var(--fg-dim);
    display: block;
    margin-bottom: 2rem;
}

.post-body p {
    margin-bottom: 1.2rem;
}

.post-body h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.post-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    border-left: 2px solid var(--accent-dim);
    padding-left: 1rem;
    color: var(--fg-dim);
    margin: 1.5rem 0;
    font-style: italic;
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-surface);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.post-body pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body ul, .post-body ol {
    margin: 1rem 0 1rem 1.5rem;
}

.post-body li {
    margin-bottom: 0.3rem;
}

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

.post-body strong {
    font-weight: 600;
    color: #f0f0f0;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-top: 3rem;
    color: var(--fg-dim);
    text-decoration: none;
    font-size: 0.85rem;
}

.back-link:hover {
    color: var(--accent);
}

/* About page */
.about p {
    margin-bottom: 1.2rem;
}

.about .contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.about .contact a {
    color: var(--accent);
    text-decoration: none;
}

/* Section headers */
.section-title {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.75rem;
    color: var(--fg-dim);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 480px) {
    html { font-size: 16px; }
    nav { padding-top: 1.5rem; }
    main { padding: 2rem 1.25rem; }
    .intro { margin-top: 2rem; }
}
