:root {
  --bg: #0f1117;
  --bg-card: #181b23;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --border: #2e3039;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

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

/* Nav */
nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

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

nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

nav .nav-links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero .bio {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Social links */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Sections */
section {
  padding: 2.5rem 0;
}

section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Writing list */
.writing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.writing-list li {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.writing-list li:hover {
  border-color: var(--accent);
}

.writing-list .title {
  font-weight: 600;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.3rem;
}

.writing-list .desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.writing-list .meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.writing-list .tag {
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}

/* Now page */
.now-header {
  padding: 2rem 0 1rem;
}

.now-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.now-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.now-content {
  padding: 1.5rem 0 3rem;
}

.now-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.now-content li {
  color: var(--text);
  line-height: 1.8;
}

.now-content li strong {
  display: block;
  margin-bottom: 0.1rem;
}

.now-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  .social-links {
    flex-direction: column;
  }

  .social-links a {
    justify-content: center;
  }
}
