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

body {
  font-family: Georgia, serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: #333;
  line-height: 1.8;
  background: #fff;
  text-align: justify;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #eee;
}

.header-left h1 {
  font-size: 1.1rem;
  font-weight: normal;
}

.header-left h1 a {
  color: #333;
  text-decoration: none;
}

/* Nav */
nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  color: #aaa;
  text-decoration: none;
}

nav a:hover {
  color: #333;
}

nav a.active {
  color: #333;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.avatar {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-text h2 {
  font-size: 1.6rem;
  font-weight: normal;
  margin-bottom: 0.2rem;
}

.tagline {
  font-size: 0.78rem;
  color: #aaa;
  margin-bottom: 0.6rem;
}

.interests {
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

.bio {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.8rem;
  max-width: 480px;
}

.highlight {
  color: #4a90d9;
  font-weight: normal;
}

.justified {
  text-align: justify;
  max-width: 640px;
}

.interests {
  margin-top: 1.8rem;
  margin-bottom: 1rem;
}

.interests-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.interests ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
}

.interests ul li {
  font-size: 0.83rem;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.interests ul li { background: #f5f8ff; color: #5572a8; border-color: #dce5f5; }

.links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.links a {
  color: #aaa;
  text-decoration: none;
}

.links a:hover {
  color: #333;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table th {
  text-align: left;
  font-weight: normal;
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0 0.6rem 0;
  border-bottom: 1px solid #eee;
}

table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

table td:last-child {
  color: #aaa;
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
}

table a {
  color: #5572a8;
  text-decoration: none;
}

table a:hover {
  text-decoration: underline;
}

/* Empty state */
.empty-state {
  font-size: 0.9rem;
  color: #aaa;
  padding: 1rem 0;
}

/* Post */
.post-wrap {
  max-width: 560px;
  margin: 0 auto;
}

article h2 {
  font-size: 1.6rem;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #222;
}

.meta {
  font-size: 0.82rem;
  color: #bbb;
  margin-bottom: 2.5rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 2;
  color: #444;
}

.post-content h2,
.post-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 2.5rem 0 0.6rem;
  color: #222;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: #5572a8;
}

.back {
  margin-top: 3.5rem;
  font-size: 0.88rem;
}

.back a {
  color: #bbb;
  text-decoration: none;
}

.back a:hover {
  color: #555;
}

/* Writings archive */
.writings-archive {
  max-width: 560px;
}

.archive-year {
  font-size: 1.1rem;
  font-weight: normal;
  color: #333;
  margin: 2rem 0 0.5rem;
}

.archive-month {
  font-size: 0.95rem;
  font-weight: normal;
  color: #888;
  margin: 1.2rem 0 0.4rem;
}

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

.archive-posts li {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.archive-day {
  font-size: 0.82rem;
  color: #bbb;
}

.archive-posts a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}

.archive-posts a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  max-width: 480px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.15s, background 0.15s;
}

.contact-item:hover {
  border-color: #dce5f5;
  background: #f5f8ff;
}

.contact-icon {
  color: #5572a8;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #aaa;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.contact-value {
  font-size: 0.92rem;
  color: #5572a8;
}

/* Footer */
footer {
  margin-top: 4rem;
  font-size: 0.8rem;
  color: #ccc;
}

/* Mobile */
@media (max-width: 768px) {
  body {
    padding: 1.5rem 1.2rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .hero-text h2 {
    font-size: 1.3rem;
  }

  .bio {
    max-width: 100%;
  }

  .interests ul {
    justify-content: center;
  }

  .links {
    justify-content: center;
  }

  table td:last-child {
    display: none;
  }
}
