@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@400;700;800&display=swap');

:root {
  --bg: #0f0e0c;
  --bg2: #1a1815;
  --bg3: #252220;
  --accent: #e8a020;
  --accent2: #c45c1a;
  --text: #e8e0d0;
  --text-muted: #8a8070;
  --border: #333028;
  --code-bg: #1e1c18;
  --max-width: 780px;
  --font-mono: 'Space Mono', monospace;
  --font-display: 'Syne', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  border-bottom: 2px solid var(--accent);
  background: var(--bg2);
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


.site-logo img {
  height: 102px;
  width: auto;
  filter: invert(1);
}


.site-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-left: calc(52px + 1rem);
  margin-top: -0.25rem;
}

nav {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

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

/* ── MAIN ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── POST LIST ── */
.post-list { list-style: none; }

.post-item {
  border-left: 3px solid var(--border);
  padding: 1.5rem 0 1.5rem 1.5rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

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

.post-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.post-item h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.post-item h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

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

.post-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-wrap: balance;
}

.post-content h1, .post-content h2, .post-content h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

h1 { text-wrap: balance; }

.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1.1rem; }

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

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

.post-content a:hover { color: var(--accent2); }

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

.post-content li { margin-bottom: 0.4rem; }

.post-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
  display: block;
}

.post-content pre, .post-content code {
  font-family: var(--font-mono);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.post-content code {
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  color: var(--accent);
}

.post-content pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.55;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.83rem;
}

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

/* ── LINKS PAGE ── */
.links-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.link-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s, background 0.2s;
}

.link-card:hover {
  border-left-color: var(--accent2);
  background: var(--bg3);
}

.link-card-title {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.link-card-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── TAGS ── */
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }

.tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15em 0.6em;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.tag:hover { color: var(--accent); border-color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); text-decoration: underline; }
footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .site-title { font-size: 1.4rem; }
  .site-tagline { margin-left: 0; margin-top: 0.25rem; }
  .post-header h1 { font-size: 1.5rem; }
}
