@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e7eaf0;
  --soft: #f7f8fa;
  --primary: #3157d5;
  --primary-soft: #eef2ff;
  --radius: 18px;
}

.container {
  width: 100%;
}

.row {
  max-width: 100%;
  margin: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Kanit', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero {
  /* padding: 90px 0 70px; */
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.eyebrow {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.display-title {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 700;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.1rem;
}

.btn-dark-soft {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: .8rem 1.15rem;
}

.btn-dark-soft:hover {
  background: #2a3347;
  color: #fff;
}

.btn-outline-soft {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1.15rem;
}

.section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 30px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -.035em;
  font-weight: 800;
}

.section-subtitle {
  color: var(--muted);
  max-width: 680px;
}

.card-clean {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: .2s ease;
  width: 100%;
  overflow: hidden;
}

.card-clean:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(23, 32, 51, .07);
}

.article-thumb {
  width: 100%;
  /* min-height: 220px; */
  border-radius: 16px;
  background: #f2f4f7;
  overflow: hidden;
}

.badge-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.meta {
  color: var(--muted);
  font-size: .88rem;
}

.tag {
  display: inline-flex;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: var(--soft);
  color: #596273;
  font-size: .8rem;
  margin: .2rem;
}

.profile-card {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
}

.stat {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 18px;
}

.project-cover {
  width: 100%;
  min-height: 220px;
  border-radius: 16px;
  background: #f2f4f7;
  color: #8a94a6;
}
.article-thumb img,
.project-cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.timeline {
  border-left: 2px solid var(--line);
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding-bottom: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  left: -34px;
  top: 9px;
}

.article-page {
  /* padding: 70px 0; */
}

.article-body {
  width: 100%;
  font-size: 1.08rem;
}

.article-body h2 {
  margin-top: 2.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.article-body pre {
  padding: 22px;
  border-radius: 14px;
  overflow: auto;
}

.article-body a {
  overflow-wrap: anywhere;
}

.sticky-side {
  position: sticky;
  top: 90px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 45px 0;
  color: var(--muted);
}

.page-header {
  padding: 65px 0 35px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 991px) {
  .hero {
    /* padding: 60px 0 45px; */
  }

  .sticky-side {
    position: static;
  }
}

/* article styling */
.header {
  width: 100%;
  padding: 10px 20px 0 20px;
}