:root {
  --bg: #000000;
  --text: #FFFFFF;
  --muted: #888;
  --code-bg: #111;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #333;
}

a:hover {
  border-color: var(--text);
}

.logo {
  font-family: "Mynerve", cursive;
  font-size: 22px;
}

.nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav .nav-links {
  display: flex;
  gap: 16px;
}

.nav .nav-links a,
.nav.home-nav a {
  color: var(--muted);
  font-size: 14px;
  border-bottom: none;
}

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

/* Home page */
.nav.home-nav {
  justify-content: center;
  max-width: none;
  padding: 20px 0;
}

.nav.home-nav a {
  margin: 0 14px;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 20px 100px;
}

.intro {
  text-align: center;
  margin-bottom: 60px;
}

.name {
  font-family: "Mynerve", cursive;
  font-size: 36px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.home-page p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 10px;
}

.links a {
  margin: 0 8px;
  font-size: 14px;
}

.home-page .section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  margin-top: 70px;
}

.section-title {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  padding-top: 4px;
}

.item {
  margin-bottom: 22px;
}

.project-title {
  font-size: 15px;
  font-weight: 200;
  color: var(--text);
}

.project-meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.9;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.blog-item {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 6px;
}

.blog-item a {
  font-weight: 150;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-inline {
  font-size: 13px;
  color: var(--muted);
  min-width: 110px;
  flex-shrink: 0;
}

.more {
  margin-top: 10px;
  display: inline-block;
  font-size: 14px;
}

/* Post page */

.highlight {
  color: #3cff00;
}
.post-page {
  line-height: 1.75;
}

.post-page .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.post-page h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 10px;
}

.post-page .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.post-page p {
  font-size: 16px;
  color: #ddd;
  margin-bottom: 18px;
}

.post-page h2 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 10px;
}


.post-page .code-block {
  position: relative;
  margin: 20px 0;
}

.post-page pre {
  background: #0F0F0F;
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  border-radius: 7px;
  border: 1px solid #1a1a1a;
}

.post-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  line-height: 1.5;
}

.post-page .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  background: #222;
  color: #ccc;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
}

.post-page .copy-btn:hover {
  color: #fff;
}

.post-page .image {
  margin: 24px 0;
}

.post-page .image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

.post-page .caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.post-page ul {
  padding-left: 20px;
  margin: 15px 0;
}

.post-page li {
  margin-bottom: 8px;
  color: #ddd;
}

.post-page blockquote {
  border-left: 2px solid #333;
  padding-left: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-style: italic;
}

/* Reading page */
.reading-page .reading-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.reading-page h1 {
  font-family: "Mynerve", cursive;
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

.reading-page .section {
  margin-bottom: 28px;
}

.reading-page .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: lowercase;
}

.reading-page .reading-list {
  list-style: none;
  padding-left: 0;
}

.reading-page .reading-list li {
  font-size: 15px;
  color: #ddd;
  margin-bottom: 8px;
}

/* Generic list pages (projects, blog, now) */
.list-page .page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.list-page .page-title {
  font-family: "Mynerve", cursive;
  font-size: 34px;
  margin-bottom: 10px;
  text-align: center;
}

.list-page .page-subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 34px;
  font-size: 14px;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plain-item a {
  font-size: 16px;
}

.plain-item .note-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.plain-item .desc-line {
  color: #ddd;
  font-size: 14px;
  margin-top: 6px;
}

.blog-timeline {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.now-list {
  padding-left: 18px;
}

.now-list li {
  color: #ddd;
  font-size: 15px;
  margin-bottom: 8px;
}

.logo a {
  border-bottom: none;
}

@media (max-width: 768px) {
  .home-page .section {
    grid-template-columns: 1fr;
  }

  .section-title {
    text-align: left;
    margin-bottom: 10px;
  }

  .name {
    font-size: 30px;
  }

  .date-inline {
    min-width: auto;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .list-page .page-title {
    font-size: 30px;
  }
}