/* Minimal styles - mobile-first */

:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #7dd3fc;
  --text: #e6eef6;
}

/* Reset + layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;     /* ensures footer sits at bottom */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Main content expands to fill space */
main.container {
  flex: 1 0 auto;  /* grow to fill, don't shrink below content */
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

main.post-container {
  flex: 1 0 auto;  /* grow to fill, don't shrink below content */
}

.post-container {
  width: 100%;
  margin: 0;
  padding: 1rem;
}


/* Header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
}

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

.site-header {
  background: #141c28;
  height: 100px;               /* fixed height */

  display: flex;
  align-items: center;         /* vertical centering */
}

/* Footer */
.site-footer {
  background: #141c28;
  height: 90px;                /* fixed height */

  display: flex;
  align-items: center;         /* vertical center */
  justify-content: center;     /* horizontal center */
  color: var(--muted);
}

/* Typography */
h1, h2, h3 {
  color: var(--text);
}

code,
pre {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    monospace;
  color: var(--accent);
}

pre {
  padding: 1rem;
  overflow: auto;
}

/* Blog posts list */
.posts-list {
  list-style: none;
  padding-left: 0;
}

.post-item {
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Links inside main content only */
.content a {
  color: var(--accent);         /* normal link color */
  text-decoration: underline;
}

.content a:visited {
  color: #38bdf8;               /* visited link */
}

.content a:hover,
.content a:focus {
  color: #7dd3fc;               /* hover/focus */
  text-decoration: underline;
}