* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {  
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: rgb(33, 33, 33);   
  line-height: 1.7;
  font-size: 16px;
}

.header {
  background: rgb(33, 33, 33);
  padding: 16px 48px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.18);
}

.logobox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.logo {
  width: 75px;
  height: 75px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav .download-btn {
  background-color: #ffffff;
  color: #282828;
  padding: 8px 18px;
  border-radius: 7px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.nav .download-btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

.main {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.post {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.post img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 18px;
}

.post-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #414141;
  margin-bottom: 6px;
}

.post h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #141f37;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.post p {
  color: #334155;
  margin-bottom: 14px;
}

.post pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 16px 0;
}

.post code {
  font-family: "Cascadia Code", "Consolas", monospace;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.footer {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.footer a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
  }
  .nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
