:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --faint: #aaaaaa;
  --border: #e8e8e8;
  --accent: #2563eb;
  --accent2: #7c3aed;
  --surface: #f7f7f7;
  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== LAYOUT ===== */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.prose { max-width: 640px; }

/* ===== NAV ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

/* ===== PAGE HERO ===== */

.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
}

/* ===== HOME HERO ===== */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}

/* Animated background blobs */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
}

.hero-glow::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13) 0%, transparent 70%);
  top: -140px;
  right: 8%;
  animation: glow-drift 10s ease-in-out infinite;
}

.hero-glow::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.10) 0%, transparent 70%);
  bottom: -60px;
  left: 4%;
  animation: glow-drift 13s ease-in-out infinite reverse;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -16px); }
  66% { transform: translate(-10px, 10px); }
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Entrance animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.now-card {
  animation: fade-up 0.65s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-sections {
  animation: fade-up 0.65s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.home-hero .bio {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 22px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.status a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.status a:hover { color: var(--text); }

/* Now card */

.now-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(37, 99, 235, 0.06);
  transition: box-shadow 0.2s;
}

.now-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 28px rgba(37, 99, 235, 0.11);
}

.now-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.now-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.now-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.now-row:last-child {
  border-bottom: 1px solid var(--border);
}

.now-key {
  font-size: 0.78rem;
  color: var(--faint);
  padding-top: 1px;
}

.now-val {
  font-size: 0.88rem;
  color: var(--text);
}

.now-val a {
  color: var(--accent);
  transition: opacity 0.15s;
}

.now-val a:hover { opacity: 0.75; }

/* ===== HOME SECTIONS ===== */

.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.home-section {
  padding: 56px 0;
}

.home-section:first-child {
  padding-right: 60px;
  border-right: 1px solid var(--border);
}

.home-section:last-child {
  padding-left: 60px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-link {
  font-size: 0.82rem;
  color: var(--accent);
  transition: opacity 0.15s;
}

.section-link:hover { opacity: 0.75; }

/* ===== POST LIST ===== */

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

.post-list li + li {
  border-top: 1px solid var(--border);
}

.post-list a {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
}

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

.post-list a:hover {
  background: rgba(37, 99, 235, 0.03);
  border-radius: 6px;
  margin: 0 -10px;
  padding: 13px 10px;
}

.post-date {
  font-size: 0.78rem;
  color: var(--faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.post-title {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  transition: color 0.15s;
}

/* Blog page - larger post list */

.post-list-full a {
  grid-template-columns: 90px 1fr auto;
  padding: 16px 0;
  gap: 24px;
  align-items: center;
}

.post-list-full .post-title {
  font-size: 0.95rem;
}

.post-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.blog-year {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 32px 0 12px;
}

.blog-year:first-child { padding-top: 0; }

/* Blog article pages */

.article-page {
  max-width: 720px;
  padding: 56px 0 80px;
}

.article-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.15s;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--faint);
  font-size: 0.78rem;
}

.article-page h1 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.article-dek {
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.article-body {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}

.article-body h2 {
  margin: 40px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul {
  margin: 0 0 24px 20px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ===== PROJECT CARDS ===== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.project-arrow {
  font-size: 0.9rem;
  color: var(--faint);
  transition: color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.project-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tech {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Home projects list (compact) */

.project-list-compact {
  list-style: none;
}

.project-list-compact li + li {
  border-top: 1px solid var(--border);
}

.project-list-compact a {
  display: block;
  padding: 14px 0;
}

.project-list-compact a:hover .pcl-name { color: var(--accent); }

.pcl-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
  transition: color 0.15s;
}

.pcl-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ===== ABOUT PAGE ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 56px 0;
}

.about-bio h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  margin-top: 32px;
}

.about-bio h2:first-child { margin-top: 0; }

.about-bio p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.82;
  margin-bottom: 14px;
}

.about-bio p:last-child { margin-bottom: 0; }

.skills-block { margin-bottom: 32px; }

.skills-block:last-child { margin-bottom: 0; }

.skills-block h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
}

/* ===== LINKS PAGE ===== */

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  padding: 56px 0;
}

.links-group h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.link-list li + li {
  border-top: 1px solid var(--border);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.15s;
}

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

.link-list a span:last-child {
  font-size: 0.8rem;
  color: var(--faint);
  transition: color 0.15s;
}

.link-list a:hover span:last-child { color: var(--accent); }

/* ===== X FEED PAGE ===== */

.x-app-main {
  background: #ffffff;
}

.x-app-shell {
  width: 100%;
  max-width: 600px;
  min-height: calc(100vh - 113px);
  margin: 0 auto;
  border-left: 1px solid #eff3f4;
  border-right: 1px solid #eff3f4;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.x-page-bar {
  position: sticky;
  top: 57px;
  z-index: 6;
  height: 53px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #eff3f4;
}

.x-page-bar h1 {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f1419;
}

.x-page-bar p {
  font-size: 0.78rem;
  line-height: 1.25;
  color: #536471;
}

.x-back {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: #0f1419;
  border-radius: 50%;
  transition: background 0.15s;
}

.x-back:hover {
  background: #eff3f4;
}

.x-back svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.x-feed {
  min-height: 240px;
}

.x-post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  padding: 12px 16px;
  color: #0f1419;
  border-bottom: 1px solid #eff3f4;
  transition: background 0.15s;
}

.x-post:hover {
  background: #f7f9f9;
}

.x-post-loading:hover {
  background: transparent;
}

.x-avatar {
  width: 40px;
  height: 40px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #0f1419;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
}

.x-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-post-body {
  min-width: 0;
}

.x-post-meta,
.x-quote-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 20px;
}

.x-post-meta {
  margin-bottom: 2px;
}

.x-name,
.x-quote-name {
  max-width: 190px;
  overflow: hidden;
  color: #0f1419;
  font-size: 0.94rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.x-name:hover {
  text-decoration: underline;
}

.x-username,
.x-time,
.x-separator {
  min-width: 0;
  overflow: hidden;
  color: #536471;
  font-size: 0.94rem;
  text-overflow: ellipsis;
}

.x-time:hover {
  text-decoration: underline;
}

.x-verified {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.x-verified circle {
  fill: #1d9bf0;
}

.x-verified path {
  fill: #ffffff;
}

.x-text,
.x-quote-text {
  color: #0f1419;
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.x-text a,
.x-quote-text a {
  color: #1d9bf0;
}

.x-text a:hover,
.x-quote-text a:hover {
  text-decoration: underline;
}

.x-media-grid {
  display: grid;
  gap: 2px;
  max-width: 100%;
  margin-top: 12px;
  overflow: hidden;
  background: #cfd9de;
  border: 1px solid #cfd9de;
  border-radius: 16px;
}

.x-media-count-1 {
  display: block;
  background: #ffffff;
}

.x-media-count-1 .x-media-item {
  aspect-ratio: 16 / 9;
}

.x-media-count-2,
.x-media-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.x-media-count-2 .x-media-item,
.x-media-count-4 .x-media-item {
  aspect-ratio: 1 / 1;
}

.x-media-count-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.x-media-count-3 .x-media-item {
  aspect-ratio: 1 / 1;
}

.x-media-count-3 .x-media-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.x-media-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  background: #f7f9f9;
}

.x-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-media-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: #ffffff;
  background: rgba(15, 20, 25, 0.78);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.x-media-compact {
  margin-top: 8px;
  border-radius: 12px;
}

.x-article {
  display: block;
  margin-top: 12px;
  overflow: hidden;
  padding: 0 0 12px;
  color: inherit;
  border: 1px solid #cfd9de;
  border-radius: 16px;
  transition: background 0.15s;
}

.x-article:hover {
  background: #f7f9f9;
}

.x-article span {
  display: block;
  margin: 12px 14px 3px;
  color: #536471;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.x-article strong {
  display: block;
  margin: 0 14px;
  color: #0f1419;
  font-size: 0.98rem;
  line-height: 1.3;
}

.x-article p {
  margin: 5px 14px 0;
  color: #536471;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.x-article p a {
  color: #1d9bf0;
}

.x-article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f7f9f9;
  border-bottom: 1px solid #cfd9de;
}

.x-article-compact {
  margin-top: 8px;
  padding-bottom: 10px;
  border-radius: 12px;
}

.x-article-compact strong {
  font-size: 0.92rem;
}

.x-quote {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  overflow: hidden;
  color: inherit;
  border: 1px solid #cfd9de;
  border-radius: 16px;
  transition: background 0.15s;
}

.x-quote:hover {
  background: #f7f9f9;
}

.x-quote-name {
  max-width: 150px;
  font-size: 0.9rem;
}

.x-quote .x-username {
  font-size: 0.9rem;
}

.x-quote-text {
  margin-top: 2px;
  font-size: 0.9rem;
}

.x-quote-link {
  display: inline-block;
  margin-top: 8px;
  color: #1d9bf0;
  font-size: 0.86rem;
  line-height: 1.3;
}

.x-quote-link:hover {
  text-decoration: underline;
}

.x-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 425px;
  margin-top: 10px;
  color: #536471;
}

.x-action {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 0.82rem;
  line-height: 20px;
  transition: color 0.15s;
}

.x-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.x-action span {
  min-width: 16px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.x-action:hover {
  color: #1d9bf0;
}

.x-action:nth-child(2):hover {
  color: #00ba7c;
}

.x-action:nth-child(3):hover {
  color: #f91880;
}

.x-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 44px 24px;
  color: #536471;
  text-align: center;
  border-bottom: 1px solid #eff3f4;
}

.x-empty strong {
  color: #0f1419;
  font-size: 1.2rem;
  line-height: 1.25;
}

.x-empty span {
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.x-load-more-wrap {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eff3f4;
}

.x-load-more-wrap:has([hidden]) {
  display: none;
}

.x-load-more {
  min-height: 40px;
  padding: 0 18px;
  color: #ffffff;
  background: #0f1419;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  transition: opacity 0.15s;
}

.x-load-more:hover {
  opacity: 0.86;
}

.x-load-more:disabled {
  cursor: wait;
  opacity: 0.55;
}

.x-skeleton {
  position: relative;
  overflow: hidden;
  background: #eff3f4;
}

.x-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  animation: x-skeleton 1.4s infinite;
}

.x-skeleton-line {
  width: 100%;
  height: 14px;
  margin: 4px 0 10px;
  border-radius: 999px;
}

.x-skeleton-short {
  width: 36%;
}

.x-skeleton-mid {
  width: 68%;
}

@keyframes x-skeleton {
  100% {
    transform: translateX(100%);
  }
}

/* ===== DIVIDER ===== */

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--faint);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--faint);
  transition: color 0.15s;
}

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

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-sections {
    grid-template-columns: 1fr;
  }

  .home-section:first-child {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 48px;
  }

  .home-section:last-child {
    padding-left: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-list-full a {
    grid-template-columns: 76px 1fr;
  }

  .post-tag { display: none; }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .x-app-shell {
    border-left: none;
    border-right: none;
  }

  .x-page-bar {
    top: 56px;
  }

  .x-post {
    padding: 12px 14px;
  }

  .x-name {
    max-width: 118px;
  }

  .x-actions {
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-mobile-toggle {
    display: block;
  }

  .post-list a {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .post-date { font-size: 0.76rem; }

  .now-card { display: none; }
}
