/* Main Page Layout */
#main-content, .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Navbar */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.site-nav-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-color);
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav-links li {
  display: inline;
}

/* Intro / Profile Section */
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.profile-intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Sections */
.section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* List Items (Projects & Articles) */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-subtle);
}

.item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.item-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-color);
}

.item-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.item-description {
  color: var(--text-color);
  font-size: 0.95rem;
  margin: 0;
}

.item-links {
  display: flex;
  gap: 14px;
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Minimal Single-Line Book Row */
.book-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.book-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.book-row:last-child {
  border-bottom: none;
}

.book-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.95rem;
}

.book-summary::-webkit-details-marker {
  display: none;
}

.book-summary:hover .book-title {
  text-decoration: underline;
}

.book-summary.no-notes {
  cursor: default;
}

.book-summary.no-notes:hover .book-title {
  text-decoration: none;
}

.book-line {
  color: var(--text-color);
  line-height: 1.5;
}

.book-title {
  font-weight: 700;
  color: var(--text-color);
}

.book-author {
  color: var(--text-muted);
}

.book-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.book-status.reading {
  color: #2b5b84;
  font-weight: 700;
}

/* Expandable Notes */
.book-notes {
  margin: 8px 0 4px 16px;
  padding-left: 12px;
  border-left: 2px solid var(--border-color);
  color: #444444;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Contact Links */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  #main-content, .container {
    padding: 24px 16px 60px;
    gap: 36px;
  }

  .site-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .item-title-row {
    flex-direction: column;
    gap: 2px;
  }
}
