/* ptblog — personal developer blog styles */

:root {
  --green: #166534;
  --green-soft: #E8F2EC;
  --green-faint: #F4F8F5;
  --ink: #1A2B23;
  --ink-soft: #5A6B60;
  --line: #E3EAE5;
  --card: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(22, 101, 52, 0.06), 0 6px 20px rgba(22, 101, 52, 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--green); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--green-faint) 0%, #fff 100%);
  padding: 84px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero-intro {
  max-width: 680px;
  margin: 0 auto 14px;
  font-size: 17px;
  color: var(--ink);
}
.hero-about {
  max-width: 680px;
  margin: 0 auto 26px;
  font-size: 15px;
  color: var(--ink-soft);
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
}
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 26px; margin-bottom: 6px; }
.sec-sub { color: var(--ink-soft); margin-bottom: 30px; font-size: 15px; }

/* ---------- notes ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.note-card:hover { border-color: #C8DCCE; }
.note-ico { font-size: 26px; display: block; margin-bottom: 10px; }
.note-card h3 { font-size: 17px; margin-bottom: 8px; }
.note-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.note-link { font-size: 14px; font-weight: 600; }

/* ---------- projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: #C8DCCE; }
.proj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.proj-no {
  font-size: 13px;
  font-weight: 700;
  color: #A9C0B1;
  letter-spacing: 0.06em;
}
.proj-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 3px 11px;
}
.project-card h3 { font-size: 16px; margin-bottom: 8px; }
.project-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.proj-stack span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--green-faint);
  border-radius: 6px;
  padding: 3px 9px;
}

/* ---------- contact ---------- */
.contact-card {
  background: var(--green-faint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px;
  text-align: center;
}
.contact-card h2 { margin-bottom: 10px; }
.contact-card p { color: var(--ink-soft); font-size: 15px; max-width: 560px; margin: 0 auto 10px; }
.contact-github { font-size: 16px !important; color: var(--ink); }
.contact-github a { font-weight: 600; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.foot-inner { text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 30px; }
  .notes-grid, .projects-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
}
