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

html {
  background: #1a1a1a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #c0c0c0;
  background: #1a1a1a;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* View Transitions API */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 300ms ease-out both fade-out;
}

::view-transition-new(root) {
  animation: 500ms ease-in both fade-in-slide;
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fade-in-slide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

header h1 a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

header h1 a:hover {
  color: #3CB371;
}

header h1 .logo {
  height: 100px;
  margin: 0;
}

header nav {
  font-size: 14px;
}

header nav a {
  color: #888;
  text-decoration: none;
  margin-right: 15px;
}

header nav a:hover {
  color: #3CB371;
}

main {
  margin-bottom: 60px;
}

footer {
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #666;
  text-align: center;
}

footer a {
  margin: 0 8px;
  display: inline-block;
}

footer img {
  filter: invert(0.6);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

footer img:hover {
  opacity: 1;
}

a {
  color: #3CB371;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 600;
  margin: 1.5em 0 0.5em 0;
  line-height: 1.3;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

p {
  margin: 1em 0;
}

.post-list {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
}

.post-list li {
  margin: 0;
  padding: 0;
  display: contents;
}

.post-list time {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.post-list h3 {
  font-size: 18px;
  margin: 0;
}

.post-list h3 a {
  color: #fff;
}

.post-list h3 a:hover {
  color: #3CB371;
  text-decoration: none;
}

.post-list p {
  margin: 0.5em 0 0 0;
  color: #999;
}

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

.post-header h2 {
  margin: 0 0 0.3em 0;
  font-size: 28px;
}

.post-header time {
  font-size: 14px;
  color: #666;
}

.post-content {
  color: #c0c0c0;
}

code {
  background: #0d0d0d;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: #3CB371;
}

pre {
  background: #0d0d0d;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid #2a2a2a;
}

pre code {
  background: none;
  padding: 0;
  color: #c0c0c0;
}

blockquote {
  border-left: 3px solid #3CB371;
  padding-left: 20px;
  margin: 1.5em 0;
  color: #999;
  font-style: italic;
}

ul, ol {
  margin: 1em 0;
  padding-left: 2em;
}

img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

hr {
  border: none;
  border-top: 1px solid #333;
  margin: 2em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

th, td {
  padding: 8px 12px;
  border: 1px solid #333;
  text-align: left;
}

th {
  background: #0d0d0d;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 600px) {
  .container {
    padding: 20px 15px;
  }
  
  header h1 {
    font-size: 20px;
  }
  
  header nav a {
    margin-right: 10px;
  }
  
  h1 {
    font-size: 26px;
  }
  
  h2 {
    font-size: 22px;
  }
}
