:root {
  --bg: #ffffff;
  --paper: #f8fafb;
  --ink: #1e293b;
  --muted: #64748b;
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --line: #e2e8f0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  color: var(--ink);
  font-family: "Pridi", serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; transition: color .15s; }
.nav a:hover { color: var(--accent); }

.hero {
  margin: 2rem 0 1.4rem;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 50%, #f0f9ff 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1.6rem;
}
.hero h1 {
  margin: 0;
  font-family: "Pridi", serif;
  font-size: clamp(1.7rem, 4.3vw, 2.6rem);
  line-height: 1.2;
}
.hero p { margin: .6rem 0 0; color: var(--muted); }

.section-title {
  margin: 1.2rem 0;
  font-family: "Pridi", serif;
  font-size: 1.45rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.post-card:last-child { border-bottom: none; }

.single {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.post-card h2 { margin: .1rem 0 .5rem; font-size: 1.1rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; transition: color .15s; }
.post-card h2 a:hover { color: var(--accent-dark); }
.meta { color: var(--muted); font-size: .92rem; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.chips span, .chips a {
  background: #e0f7fa;
  border: 1px solid #b2ebf2;
  color: #00838f;
  border-radius: 999px;
  padding: .15rem .6rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.chips a:hover { background: #b2ebf2; }

.single h1 {
  margin: 0;
  font-family: "Pridi", serif;
  font-size: clamp(1.5rem, 3.8vw, 2.2rem);
}
.content a { color: var(--accent-dark); }
.content img { max-width: 100%; height: auto; border-radius: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.1rem;
  padding: 1.1rem 0 1.8rem;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 780px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav { gap: .55rem; }
}
