:root {
  --bg-color: #ffffff;
  --text-color: #0f1419;
  --link-color: #1d9bf0;
  --border-color: #eff3f4;
  --meta-color: #536471;
  --content-color: #3a3a3a;
  --container-width: 600px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.2rem 0;
  margin-top: 2rem;
  z-index: 100;
}

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

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 5.4rem;
  color: #333333;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--link-color);
}

.menu-wrapper {
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: space-around;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--meta-color);
  transition: all 0.3s ease;
}

.menu {
  display: flex;
  gap: 0;
}

@media screen and (max-width: 600px) {
  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none !important;
  }

  .menu.active {
    display: flex !important;
  }
}

.menu-item {
  margin-left: 1.5rem;
  color: var(--meta-color);
  font-weight: 400;
  font-size: 0.95rem;
}

.menu-item:hover {
  color: var(--link-color);
  text-decoration: none;
}

/* Homepage - Simple Card Layout with generous spacing */
.post {
  padding: 0;
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.post-title {
  font-size: 1rem;
  margin: 0;
  font-weight: bold;
}

.post-title a {
  color: var(--text-color);
}

.post-date {
  display: inline;
  font-size: 0.85rem;
  color: rgba(83, 100, 113, 0.65);
  font-weight: 400;
  margin-right: 0.5rem;
}

.post-content {
  font-size: 1rem;
  line-height: 1.75;
  word-wrap: break-word;
  color: #333333;
  letter-spacing: 0.01em;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(239, 243, 244, 0.6);
  border-right: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.post-content-link {
  display: block;
  color: var(--content-color);
}

.post-content-link:hover {
  text-decoration: none;
}

.post-content-link:hover .post-content {
  color: var(--text-color);
  border-color: rgba(29, 155, 240, 0.3);
  box-shadow: 0 2px 12px rgba(29, 155, 240, 0.08);
}

/* Archive Page - Timeline Layout */
.archive.timeline-view {
  position: relative;
  padding-left: 50px;
}

/* Vertical timeline line - subtle and light */
.archive.timeline-view::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: rgba(239, 243, 244, 0.6);
}

.archive-post {
  position: relative;
  padding: 0.75rem 0;
  border-bottom: none;
  margin-bottom: 0.25rem;
}

/* Timeline circle marker - soft and subtle */
.archive-post::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 1.7rem;
  width: 8px;
  height: 8px;
  background: rgba(83, 100, 113, 0.3);
  border: 2px solid var(--bg-color);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(83, 100, 113, 0.2);
  z-index: 10;
}

.archive-post:hover::before {
  background: rgba(29, 155, 240, 0.5);
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.3);
}

.archive-post .post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.archive-post .post-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}

.archive-post .post-title a {
  color: var(--text-color);
}

.archive-post .post-date {
  font-size: 0.9rem;
  color: rgba(83, 100, 113, 0.65);
  font-weight: 500;
  white-space: nowrap;
}

.archive-post .post-content {
  font-size: 1rem;
  word-wrap: break-word;
  color: var(--content-color);
  background: rgba(255, 255, 255, 0.5);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 243, 244, 0.6);
  transition: all 0.2s ease;
}

.archive-post .post-content-link {
  display: block;
  color: var(--content-color);
}

.archive-post .post-content-link:hover {
  text-decoration: none;
}

.archive-post .post-content-link:hover .post-content {
  color: var(--text-color);
  border-color: rgba(29, 155, 240, 0.3);
  box-shadow: 0 2px 12px rgba(29, 155, 240, 0.08);
}

.post-content p {
  margin: 0.5rem 0;
}

.post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.paginator {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--meta-color);
}

.paginator a {
  color: var(--meta-color);
}

.paginator a:hover {
  color: var(--text-color);
  text-decoration: none;
}

.paginator span.current {
  color: var(--text-color);
  font-weight: 500;
}

.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--meta-color);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

/* Archive */
.archive-item {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.archive-date {
  min-width: 90px;
  flex-shrink: 0;
  color: var(--meta-color);
  font-size: 0.9rem;
}

.archive-item a {
  flex: 1;
  color: var(--content-color);
}

.archive-item a:hover {
  color: var(--text-color);
  text-decoration: none;
}

/* Disqus Comments */
.disqus-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

#disqus_thread {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reduce visual conflict with Twitter theme - Complete grayscale */
#disqus_thread iframe {
  filter: grayscale(1) brightness(1.08);
  transition: filter 0.3s ease;
}

/* Restore saturation on hover to maintain usability */
#disqus_thread:hover iframe {
  filter: saturate(1) brightness(1);
}


/* Follow Form */
.follow-form {
  margin-top: 2rem;
}

.follow-form p {
  color: var(--meta-color);
  margin-bottom: 1rem;
}

.follow-form form {
  display: flex;
  gap: 0.5rem;
}

.follow-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.follow-input:focus {
  border-color: var(--meta-color);
}

.follow-button {
  padding: 0.75rem 1.5rem;
  background: var(--content-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.follow-button:hover {
  background: var(--text-color);
}

/* Responsive Design for Archive Timeline */
@media (max-width: 600px) {
  .header .container {
    flex-direction: row;
    align-items: flex-end;
    gap: 1rem;
  }

  .logo {
    font-size: 5rem;
    flex: 1;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    transform: translateY(-2.5rem);
  }

  .menu-item {
    margin-left: 0;
    padding: 0.5rem 1rem;
    display: block;
  }

  .archive.timeline-view {
    padding-left: 30px;
  }

  .archive.timeline-view::before {
    left: 12px;
  }

  .archive-post::before {
    left: -24px;
    width: 10px;
    height: 10px;
  }

  .archive-post {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
  }

  .archive-post .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .archive-post .post-date {
    font-size: 0.85rem;
  }

  .archive-post .post-content {
    padding: 0.875rem 1rem;
  }
}