:root {
  --bg: #f4f6f8;
  --bg-accent: #e8eef2;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #1a2332;
  --muted: #5a6577;
  --accent: #0f6e7c;
  --accent-soft: #d7ecef;
  --border: #d5dde5;
  --code-bg: #eef2f5;
  --max: 720px;
  --max-wide: 920px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --shadow: 0 1px 0 rgba(26, 35, 50, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dce9ee 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e7eef4 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0b5560;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 246, 248, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  animation: grow-in 0.35s ease;
}

@keyframes grow-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 0.55s ease both;
}

.fade-up-delay {
  animation: fade-up 0.65s ease 0.12s both;
}

main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  max-width: var(--max);
  padding: 2.5rem 0 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero .role {
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.hero .lede {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: #0b5560;
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: #0b5560;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.social-row a {
  text-decoration: none;
  color: var(--muted);
}

.social-row a:hover {
  color: var(--accent);
}

.section {
  margin-top: 3rem;
  max-width: var(--max);
}

.section h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-intro {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-intro {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 40rem;
  line-height: 1.6;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.filter-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.35rem;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.post-list,
.ext-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item,
.ext-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  animation: fade-up 0.4s ease both;
}

.post-item.hidden,
.ext-item.hidden {
  display: none;
}

.post-item a.title,
.ext-item a.title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.015em;
}

.post-item a.title:hover,
.ext-item a.title:hover {
  color: var(--accent);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.4rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.tag {
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 0.12rem 0.45rem;
  font-family: inherit;
  display: inline-block;
}

.article .tag-list {
  margin-bottom: 0.75rem;
}

.summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.vendor {
  font-weight: 500;
  color: var(--text);
}

.empty-state {
  color: var(--muted);
  padding: 1.5rem 0;
  display: none;
}

.empty-state.visible {
  display: block;
}

.article {
  max-width: var(--max);
}

.article header {
  margin-bottom: 2rem;
}

.article h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  letter-spacing: -0.015em;
  margin-top: 2rem;
}

.prose p,
.prose li {
  color: #243041;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.prose pre {
  background: #1e2836;
  color: #e8eef4;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.prose p:has(img) + p strong,
.prose p strong:only-child {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 1rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.25rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.job-role {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}

.job-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.job-points {
  margin: 0;
  padding-left: 1.15rem;
  color: #243041;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-block h3 {
  font-size: 0.95rem;
  margin: 0 0 0.45rem;
  color: var(--accent);
}

.skill-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.home-list a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.home-list a:hover {
  color: var(--accent);
}

.home-list .meta {
  margin-top: 0.2rem;
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 1.5rem;
  }
}
