/* Manas — minimal blog styles */

:root {
  --bg: #fdfdfb;
  --text: #111;
  --muted: #777;
  --rule: #e6e6e1;
  --link: #111;
  --link-hover: #555;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* Header */

.site-header {
  margin-bottom: 3rem;
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

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

.site-tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Links */

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

/* Post list (landing page) */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list time {
  flex-shrink: 0;
  min-width: 6.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.post-list a {
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

/* Single post */

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

.post-title {
  margin: 0 0 0.3rem;
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.3;
}

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

.post-content h2 {
  margin-top: 2.2rem;
  font-size: 1.2rem;
  font-weight: normal;
}

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

.post-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: #444;
}

.post-content pre,
.post-content code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: #f3f3ef;
}

.post-content code {
  padding: 0.1em 0.3em;
}

.post-content pre {
  padding: 1rem;
  overflow-x: auto;
}

.post-content pre code {
  padding: 0;
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}

.back-link {
  font-size: 0.9rem;
}

/* Small screens */

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .post-list li {
    flex-direction: column;
    gap: 0;
  }
}
