:root {
  --bg: #faf9fc;
  --bg-alt: #f4f2fa;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-alt: #f1eefa;
  --border: rgba(148, 130, 200, 0.16);
  --text: #1c1a2b;
  --text-dim: #6b6680;
  --accent: #16a34a;
  --accent-strong: #0f7a37;
  --accent-soft: #e6f8ec;
  --pink: #f472b6;
  --blue: #60a5fa;
  --amber: #f59e0b;
  --radius: 22px;
  --radius-lg: 28px;
  --max-width: 1080px;
  --max-width-narrow: 760px;
  --shadow-sm: 0 2px 10px rgba(90, 70, 150, 0.06);
  --shadow-md: 0 16px 40px rgba(90, 70, 150, 0.14);
  --glass-blur: blur(18px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px circle at 8% 8%, rgba(96, 165, 250, 0.22), transparent 60%),
    radial-gradient(620px circle at 92% 4%, rgba(244, 114, 182, 0.18), transparent 60%),
    radial-gradient(700px circle at 15% 92%, rgba(22, 163, 74, 0.14), transparent 60%),
    radial-gradient(520px circle at 96% 70%, rgba(245, 158, 11, 0.12), transparent 55%);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: var(--max-width-narrow); }

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

code, pre, .brand-mark { font-family: 'JetBrains Mono', monospace; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 252, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-nav a:hover, .site-nav a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 104px 0 80px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy { flex: 1 1 auto; min-width: 0; }

.hero-photo {
  flex: 0 0 auto;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 820px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 32px; }
  .hero-photo { width: 200px; height: 200px; }
  .hero-cta { justify-content: center; }
  .hero h1, .hero-tagline { max-width: 100%; }
}

.eyebrow {
  display: inline-block;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(22, 163, 74, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 780px;
  color: var(--text);
}

.hero-tagline {
  color: var(--text-dim);
  font-size: 1.18rem;
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a 55%, #0f7a37);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(22, 163, 74, 0.38); }

.btn-ghost {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }

/* Sections */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.sub-title {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin: 40px 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

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

.link-more { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.link-more:hover { color: var(--accent-strong); }

.about-text { color: var(--text-dim); font-size: 1.05rem; max-width: 720px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.skill-grid li::before {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.skill-grid li:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.timeline { display: flex; flex-direction: column; gap: 16px; }

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px 24px;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.timeline-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.timeline-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.timeline-period {
  color: var(--accent-strong);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-current {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
}

.timeline-body h4 { margin: 0 0 8px; font-size: 1.05rem; }
.timeline-org { color: var(--text-dim); font-weight: 400; }
.timeline-org a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.timeline-org a:hover { color: var(--accent); text-decoration: underline; }
.timeline-body p { margin: 0; color: var(--text-dim); }

.timeline-points {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.timeline-points li { line-height: 1.5; }
.timeline-points li::marker { color: var(--accent); }

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.article-card, .article-row {
  display: block;
  min-width: 0;
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card:hover, .article-row:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card-cover, .article-row-cover {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #0d1210;
  border-bottom: 1px solid var(--border);
}
.article-card-cover img, .article-row-cover img, .article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.article-card:hover .article-card-cover img,
.article-row:hover .article-row-cover img { transform: scale(1.04); }

.article-card > .article-card-meta,
.article-card > h3,
.article-card > p,
.article-card > .tag-row,
.article-card > .article-card-footer { margin-left: 24px; margin-right: 24px; }
.article-card .article-card-meta { margin-top: 20px; }
.article-card > h3 { flex: 0 0 auto; }
.article-card > p {
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.article-card-footer .tag-row { margin: 0; }
.read-more {
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.article-card:hover .read-more { opacity: 1; transform: translateX(0); }

.article-row { padding: 0; overflow: hidden; }
.article-row-cover { aspect-ratio: 1200 / 300; }
.article-row > .article-row-meta,
.article-row > h3,
.article-row > p,
.article-row > .tag-row { margin-left: 28px; margin-right: 28px; }
.article-row > .article-row-meta { margin-top: 20px; }
.article-row > .tag-row { margin-bottom: 28px; }

.article-cover {
  margin: 20px 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1200 / 630;
}

.article-card h3, .article-row h3 { margin-top: 8px; margin-bottom: 10px; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.35; }
.article-card p, .article-row p { color: var(--text-dim); margin-top: 0; margin-bottom: 14px; font-size: 0.95rem; }

.article-card-meta, .article-row-meta, .article-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.01em;
}

.article-card-meta span:nth-child(2), .article-row-meta span:nth-child(2) { color: var(--text-dim); }

.article-list { display: flex; flex-direction: column; gap: 16px; }

.article-row h3 { font-size: 1.25rem; }
.article-row p { max-width: 640px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 480px;
  margin-top: 28px;
}
.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-dim);
  pointer-events: none;
}
.search-form input[type="search"] {
  width: 100%;
  padding: 13px 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-clear {
  position: absolute;
  right: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 700;
}
.search-clear:hover { color: var(--accent-strong); }

.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-bottom: 4px; }
a.tag { background: var(--surface); color: var(--text-dim); border: 1px solid var(--border); }
a.tag-active, a.tag:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }

.empty-state { color: var(--text-dim); }

/* Article page */
.page-head { padding-bottom: 8px; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.page-head .hero-tagline { margin-bottom: 0; }
.back-link { color: var(--accent); font-weight: 600; display: inline-block; margin-bottom: 24px; }
.back-link:hover { color: var(--accent-strong); }

.article-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; margin: 12px 0 16px; }

.article-body { margin-top: 32px; font-size: 1.08rem; color: var(--text); }
.article-body h2 { margin-top: 40px; font-size: 1.5rem; letter-spacing: -0.01em; }
.article-body h3 { margin-top: 32px; font-size: 1.2rem; }
.article-body p { margin: 16px 0; color: #2b323a; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body pre {
  background: #0f1216;
  color: #e6edf3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
}
.article-body code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-body pre code { background: none; padding: 0; color: inherit; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 20px 0;
  padding: 4px 20px;
  color: var(--text-dim);
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-body th, .article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.article-body thead th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover { background: var(--accent-soft); }
.article-body img { max-width: 100%; border-radius: var(--radius); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Article layout: content + TOC sidebar */
.container-article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 56px;
  align-items: start;
}
.article-main { min-width: 0; }

.article-toc { position: sticky; top: 92px; }
.toc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 18px;
}
.toc-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.toc-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.toc-card a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
  padding-left: 10px;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.toc-card li.toc-depth-3 a { padding-left: 20px; font-size: 0.84rem; }
.toc-card a:hover { color: var(--text); }
.toc-card a.active { color: var(--accent-strong); border-color: var(--accent); font-weight: 600; }
.toc-discuss {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
}
.toc-discuss:hover { color: var(--accent); }

/* Share row */
.article-share {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.share-links { display: flex; gap: 14px; flex-wrap: wrap; }
.share-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.share-links a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Discussion */
.discussion { margin-top: 56px; }
.discussion .section-title { margin-bottom: 12px; }
.discussion-hint { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }
.discussion-empty {
  color: var(--text-dim);
  font-size: 0.95rem;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.discussion-empty a { color: var(--accent); text-decoration: underline; }
.discussion-empty code {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}
.discussion-count { color: var(--text-dim); font-weight: 500; font-size: 1.1rem; }

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 32px;
  padding: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.comment-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comment-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.88rem; color: var(--text-dim); }
.comment-form .optional { font-weight: 400; }
.comment-form input[type="text"], .comment-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.comment-form .btn { align-self: flex-start; }

.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.comment { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: none; }
.comment-meta { display: flex; gap: 8px; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 6px; }
.comment-name { font-weight: 700; color: var(--text); }
.comment-message { margin: 0; color: #2b323a; white-space: pre-wrap; }

@media (max-width: 900px) {
  .container-article { grid-template-columns: 1fr; }
  .article-toc { position: static; order: -1; margin-bottom: 8px; }
  .toc-card ul { flex-direction: row; flex-wrap: wrap; gap: 10px 16px; }
  .toc-card a { border-left: none; padding-left: 0; border-bottom: 2px solid transparent; }
  .toc-card li.toc-depth-3 a { padding-left: 0; }
  .toc-card a.active { border-bottom-color: var(--accent); }
  .toc-discuss { display: none; }
}

/* Admin form */
.admin-form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.admin-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-dim); }
.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-form input[type="password"],
.admin-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.admin-form input:focus, .admin-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.admin-form textarea { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; }
.checkbox-label { flex-direction: row !important; align-items: center; gap: 10px !important; }
.form-error { color: #b3261e; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; padding-bottom: 32px; }
.footer-name { font-weight: 700; margin: 0 0 4px; }
.footer-tagline { color: var(--text-dim); margin: 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-weight: 600; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; color: var(--text-dim); font-size: 0.82rem; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(250, 249, 252, 0.96);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    gap: 16px;
  }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}
