/* whitelabel.org - Minimal retro design */

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

/* Base */
html {
  font-size: 18px;
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
}

/* Layout */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem;
}

/* Links - Classic web colors */
a {
  color: #0000ee;
  text-decoration: none;
}

a:visited {
  color: #551a8b;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Header */
header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 2rem;
}

header .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.site-title a {
  color: #111;
}

.site-title a:visited {
  color: #111;
}

.tagline {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

nav {
  margin-top: 0.75rem;
}

nav a {
  margin-right: 1rem;
  font-size: 0.9rem;
}

/* Main content */
main {
  min-height: 60vh;
}

main .container {
  padding-top: 0;
}

/* Footer */
footer {
  border-top: 1px solid #ddd;
  margin-top: 3rem;
  color: #666;
  font-size: 0.85rem;
}

footer .container {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

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

.post-list li {
  margin-bottom: 1.5rem;
}

.post-list .post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.post-meta {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.post-meta a {
  color: #666;
}

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

.post-header h1 {
  margin-bottom: 0.5rem;
}

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

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

.post-content blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid #ddd;
  color: #444;
}

.post-content pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

.post-content code {
  background: #f5f5f5;
  padding: 0.1rem 0.3rem;
  font-size: 0.9em;
}

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

.post-nav {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  color: #666;
}

.tag::before {
  content: "#";
}

.tag-list {
  list-style: none;
  padding: 0;
}

.tag-list li {
  margin-bottom: 0.5rem;
}

.tag-count {
  color: #666;
  font-size: 0.85rem;
}

/* Archive */
.archive-year {
  margin-top: 2rem;
}

.archive-year:first-child {
  margin-top: 0;
}

.archive-year h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

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

.archive-list li {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

.archive-date {
  color: #666;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Feed (homepage with full content) */
.feed-post {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #ddd;
}

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

.feed-post header {
  border-bottom: none;
  margin-bottom: 1rem;
}

.feed-post .post-title {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.feed-post .post-title a {
  color: #111;
}

.feed-post .post-title a:visited {
  color: #333;
}

.feed-post .post-meta {
  margin: 0;
}

/* Dead links */
a.dead-link {
  color: #888;
  text-decoration: line-through;
  cursor: not-allowed;
}

a.dead-link:visited {
  color: #888;
}

a.dead-link:hover {
  text-decoration: line-through;
}

a.dead-link::after {
  content: " [dead link]";
  font-size: 0.75em;
  color: #999;
  text-decoration: none;
  font-style: italic;
}

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

  .container {
    padding: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
}
