/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #0b1220;
  background: #ffffff;
}

.container { max-width: 620px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-weight: 600; font-size: 1.3rem; text-decoration: none; color: #0f172a; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: #475569; font-size: 1rem; font-weight: 500; }
.nav-links a:hover { color: #0f172a; }

main { padding: 3rem 0; min-height: 60vh; background: #ffffff; }

h1 { font-size: 1.75rem; margin: 1.5rem 0 1rem; line-height: 1.3; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; line-height: 1.3; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; line-height: 1.3; }

p, main ul, main ol { font-size: 1rem; line-height: 1.7; margin-bottom: 0.875rem; }
main li { margin-bottom: 0.375rem; }

/* Text styles */
.lead { font-size: 1.1rem; margin: 1rem 0; }

.text-muted { color: #64748b; }
.no-margin-top { margin-top: 0; }
.monospace { font-family: monospace; }

/* Section styles */
.section-start { margin-top: 2rem; }
.section-item { margin-bottom: 2.5rem; }
.contact-section { margin-top: 3rem; padding-top: 2rem; }

/* Article/Blog styles */
.article-date { color: #94a3b8; font-size: 0.9rem; margin-bottom: 1.5rem; font-family: monospace; }
article h1 { margin-top: 2rem; margin-bottom: 0.5rem; }
article h2 { margin-top: 2.5rem; }
article h3 { margin-top: 2rem; }

article code {
  background: #f3f6fb;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
}

article pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

article pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

a { 
  color: inherit; 
  font-weight: 600; 
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.25);
  text-underline-offset: 2px;
}
a:hover { 
  text-decoration-color: rgba(0, 0, 0, 0.6);
}

/* Writings/Blog list styling */
.simple-list { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.simple-list li { padding: 0.375rem 0; }
.simple-list a { color: #0f172a; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.2); text-underline-offset: 2px; }
.simple-list a:hover { text-decoration-color: rgba(0, 0, 0, 0.5); }
.simple-list .meta { color: #94a3b8; font-size: 0.85rem; white-space: nowrap; font-family: monospace; }

/* Contact section - smaller */
.contact-small { margin-top: 2.5rem; padding-top: 1rem; }
.contact-small h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.contact-small p { font-size: 0.9rem; margin-bottom: 0.5rem; color: #475569; }
.contact-small .social-links { display: flex; gap: 1rem; align-items: center; margin-top: 0.75rem; }
.contact-small .social-links a { display: inline-flex; align-items: center; gap: 0.375rem; text-decoration: none; color: #475569; font-weight: 500; }
.contact-small .social-links a:hover { color: #0f172a; }
.contact-small .social-links svg { width: 18px; height: 18px; }
.location { display: inline-flex; align-items: center; gap: 0.25rem; }

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 15px; }
  
  .container { padding: 0 16px; }
  
  nav .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.9rem; }
  
  main { padding: 2rem 0; }
  
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  
  .lead { font-size: 1rem; }
  
  .contact-small .social-links { flex-wrap: wrap; }
}
