/* gaume.us -- mobile-first, plain, readable */

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  color: #222;
  background: #fafaf8;
  margin: 0;
  padding: 0;
}

header {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid #ddd;
}

.site-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-title:hover {
  color: #555;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

footer {
  border-top: 1px solid #ddd;
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #666;
}

footer a {
  color: #444;
}

/* Post list on index */

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

.post-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e8e8e5;
}

.post-entry:last-child {
  border-bottom: none;
}

.post-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.post-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.post-title a:hover {
  color: #0050b3;
  text-decoration: underline;
}

.post-meta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.6rem;
}

.post-summary {
  margin: 0;
  color: #444;
}

/* Tag pills */

.tag {
  display: inline-block;
  background: #efefec;
  color: #555;
  border-radius: 3px;
  padding: 0 0.35em;
  font-size: 0.78rem;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Single post */

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

.post-header h1 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.8rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

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

.post-body h2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.post-body h3 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.post-body ul, .post-body ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}

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

.post-body a {
  color: #0050b3;
}

.post-body a:hover {
  color: #003380;
}

.post-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88em;
  background: #f0f0ec;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.post-body pre {
  background: #f0f0ec;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0 0 1.2rem;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

.post-body blockquote {
  border-left: 3px solid #ccc;
  margin: 0 0 1.2rem 0;
  padding: 0.5rem 0 0.5rem 1.2rem;
  color: #555;
  font-style: italic;
}

.post-body hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.back-link {
  margin-top: 3rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

.back-link a {
  color: #555;
  text-decoration: none;
}

.back-link a:hover {
  color: #222;
  text-decoration: underline;
}

/* Responsive */

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

  .post-header h1 {
    font-size: 1.5rem;
  }
}
