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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Computer Modern", Georgia, 'Times New Roman', serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.wrapper {
  display: flex;
  max-width: 920px;
  margin: 0 auto;
  padding: 150px 60px 80px;
  gap: 90px;
  align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 190px;
  flex-shrink: 0;
}

.page-title {
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.8rem;
  font-style: normal;
  letter-spacing: -0.02em;
}

/* Navigation */
.sidebar nav {
  display: flex;
  flex-direction: column;
}

.sidebar nav a {
  display: block;
  color: #111;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.7;
}

.sidebar nav a:hover {
  color: #e06c00;
}

.sidebar nav a.active {
  color: #e06c00;
}

/* Main content */
.content {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.content p {
  margin-bottom: 1rem;
}

.content p:last-child {
  margin-bottom: 0;
}

.content a {
  color: #e06c00;
}

.content a:hover {
  text-decoration: underline;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  font-weight: 400;
  font-size: 1.1rem;
  margin: 1.8rem 0 0.6rem;
  line-height: 1.3;
}

.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
  margin-top: 0;
}

.content ul,
.content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.content li {
  margin-bottom: 0.2rem;
}

.content strong {
  font-weight: 500;
}

.content em {
  font-style: italic;
}

.content blockquote {
  border-left: 2px solid #ddd;
  padding-left: 1rem;
  color: #555;
  margin: 1rem 0;
}

.content hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

/* Post list — Thoughts page */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.post-list a {
  text-decoration: none;
  color: #111;
}

.post-list a:hover {
  color: #e06c00;
}

/* Individual post */
.post-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
  display: block;
}

/* Contact section header */
.contact-header {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

/* Gear section dividers */
.gear-section {
  margin-bottom: 2.4rem;
}

.gear-section:last-child {
  margin-bottom: 0;
}

/* Home intro */
.home-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.home-text p {
  margin: 0;
}

.home-text p + p {
  margin-top: 0.15rem;
}

.home-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(15%);
}

/* News heading */
.news-heading {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1.8rem 0 0.6rem;
  border-bottom: 2px solid #e06c00;
  padding-bottom: 2px;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.3rem;
}

.project-header a {
  font-weight: 500;
  text-decoration: none;
  color: #111;
}

.project-header a:hover {
  color: #e06c00;
}

.project-lang {
  font-size: 0.85rem;
  color: #999;
}

.project p {
  margin: 0;
  color: #333;
}

/* Footer */
.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 60px 28px;
  font-size: 0.8rem;
  color: #bbb;
  display: flex;
  gap: 1.5rem;
}

/* Responsive */
@media (max-width: 680px) {
  .wrapper {
    flex-direction: column;
    padding: 60px 28px 60px;
    gap: 36px;
  }

  .sidebar {
    width: 100%;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .site-footer {
    padding: 0 28px 24px;
  }
}
