/* praxis-dark theme - minimal, clean CSS */
:root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --text: #c9d1d9;
    --muted: #8b949e;
    --accent: #58a6ff;
    --border: #30363d;
    --width: 1080px;
}

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    max-width: var(--width);
    margin-left: auto;
    margin-right: auto;
}

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

.site-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo {
    width: 40px;
    height: 40px;
}

.site-titles {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

nav a {
    color: var(--muted);
    margin-left: 1.5rem;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--text);
    text-decoration: none;
}

/* Main content */
main {
    padding-bottom: 4rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 strong, h2 strong, h3 strong, h4 strong {
    font-weight: 700;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }

/* Post list */
.post-list {
    margin-top: 1rem;
}

.post-item {
    padding: 1.5rem 0;
}

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

.post-item h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.post-item h2 a {
    color: var(--text);
}

.post-item time {
    color: var(--muted);
    font-size: 0.85rem;
}

.post-item p {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.post-list .post-title {
    font-size: 1.75rem;
}

p:empty {
    display: none;
}

.home-post > :not(:first-child) {
  margin-top: 1rem;
}

/* Single post */
.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
}

.post-header time {
    color: var(--muted);
    font-size: 0.85rem;
}

.post-tags {
    margin-top: 0.75rem;
}

.tag {
    background: var(--bg-alt);
    color: var(--muted);
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.post-content p {
    margin: 1rem 0;
}

/* Code */
code {
    background: var(--bg-alt);
    padding: 0.15rem 0.4rem;
    font-size: 0.875em;
    border-radius: 3px;
}

pre {
    background: var(--bg-alt);
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

/* Blockquote */
blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.5rem 0;
    padding-left: 1rem;
    color: var(--muted);
}

/* Tables */
table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.75rem 1rem;
}

th {
    background: var(--bg-alt);
    font-weight: 600;
}

tr + tr {
    border-top: 1px solid var(--border);
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin: 0.25rem 0;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
}
