/* ============================
   CSS Variables & Reset
   ============================ */
:root {
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-dark: #4f46e5;

  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-code: #f3f4f6;
  --bg-tag: #eef2ff;

  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-tag: #6366f1;

  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Source Code Pro",
    Consolas, "Courier New", monospace;

  --max-width: 780px;
  --nav-height: 64px;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-code: #0d0d0d;
  --bg-tag: #1e1b4b;

  --text: #f0f0f0;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --text-tag: #a5b4fc;

  --border: #2a2a2a;
  --border-light: #1e1e1e;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ============================
   Layout Utilities
   ============================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1100px;
}

main {
  flex: 1;
}

/* ============================
   Navigation
   ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(var(--bg-rgb, 250, 250, 250), 0.85);
  transition: border-color var(--transition-slow), background-color var(--transition-slow);
}

[data-theme="dark"] .nav {
  background-color: rgba(15, 15, 15, 0.85);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav__logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}

.nav__logo:hover::after {
  width: 100%;
}

.nav__logo:hover {
  color: var(--color-primary);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-primary);
  background-color: var(--bg-tag);
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
  margin-left: 8px;
}

.theme-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--bg-tag);
  transform: rotate(15deg);
}

/* ============================
   Hero Section
   ============================ */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--bg-tag);
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================
   Section Headers
   ============================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================
   Article Cards
   ============================ */
.articles {
  padding-bottom: 96px;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-light));
  border-radius: 0 0 3px 3px;
  transition: height var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card:hover::before {
  height: 100%;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card__date {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tag);
  background: var(--bg-tag);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.card:hover .card__title {
  color: var(--color-primary);
}

.card__excerpt {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.card__read-time {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card__arrow {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.card:hover .card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--border-light) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 22px;
  margin-bottom: 14px;
  width: 70%;
}

/* ============================
   Post Page
   ============================ */
.post-wrap {
  padding: 60px 0 96px;
}

.post-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
}

.post-back:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--bg-tag);
  transform: translateX(-3px);
}

.post-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.post-meta__item {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-meta__divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* ============================
   Article Body Typography
   ============================ */
.post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
}

.post-body h2 {
  font-size: 1.5rem;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--border);
}

.post-body h3 {
  font-size: 1.2rem;
}

.post-body h4 {
  font-size: 1.05rem;
}

.post-body p {
  margin-bottom: 1.5em;
}

.post-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.post-body a:hover {
  text-decoration-color: var(--color-primary);
}

.post-body strong {
  font-weight: 700;
  color: var(--text);
}

.post-body em {
  font-style: italic;
}

.post-body ul,
.post-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.post-body ul {
  list-style: none;
}

.post-body ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.post-body ol {
  list-style: decimal;
  counter-reset: list-counter;
}

.post-body ol li {
  margin-bottom: 0.5em;
}

.post-body blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--color-primary);
  background: var(--bg-tag);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-body blockquote p {
  margin-bottom: 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

.post-body img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 1.5em auto;
}

/* Code inline */
.post-body code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-code);
  color: var(--color-primary);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Code blocks */
.post-body pre {
  margin: 1.8em 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
}

.post-body pre code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: block;
  overflow-x: auto;
  padding: 24px !important;
  line-height: 1.65;
}

/* Code block header */
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-lang {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-weight: 500;
}

.code-copy {
  font-size: 0.75rem;
  color: var(--text-light);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}

.code-copy:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================
   Post Footer
   ============================ */
.post-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-start;
}

/* ============================
   About Page
   ============================ */
.about-wrap {
  padding: 60px 0 96px;
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.about-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.about-info h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.about-info .role {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.about-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.about-section {
  margin-bottom: 48px;
}

.about-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-tag);
  background: var(--bg-tag);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tag);
  border-radius: var(--radius-sm);
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* ============================
   404 Page
   ============================ */
.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.not-found__number {
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.not-found__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.not-found__desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--outline:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--bg-tag);
}

/* ============================
   Footer
   ============================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  transition: border-color var(--transition-slow);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-primary);
}

/* ============================
   Back to Top Button
   ============================ */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  z-index: 50;
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

/* ============================
   Highlight.js Overrides
   ============================ */
.hljs {
  background: var(--bg-code) !important;
  color: var(--text) !important;
}

[data-theme="dark"] .hljs {
  background: #111111 !important;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.anim-fade-in {
  animation: fadeIn 0.4s ease both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .card {
    padding: 24px;
  }

  .about-hero {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .about-info p {
    margin: 0 auto;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
  }

  .post-meta {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav__link {
    display: none;
  }

  .nav__link--always {
    display: flex;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .card {
    padding: 20px;
  }

  .card__title {
    font-size: 1.1rem;
  }

  .post-title {
    font-size: 1.6rem;
  }
}

/* ============================
   Scrollbar Styling
   ============================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ============================
   Selection
   ============================ */
::selection {
  background: rgba(99, 102, 241, 0.2);
  color: var(--color-primary);
}
