:root {
  --bg-color: #fafafa;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #eeeeee;
  --text-color: #1a1a1a;
  --text-secondary: #666666;
  --accent-color: #1a1a1a;
  --accent-hover: #000000;
  --accent-primary: #2d7d9a;
  --border-color: #333333;
  --border-light: #d0d0d0;
  --text-inverted: #ffffff;
  --button-hover-bg: #1a1a1a;
  --button-hover-text: #fafafa;
  --syntax-keyword: #7C3AED;
  --syntax-string: #DC2626;
  --syntax-comment: #78716C;
  --syntax-number: #0284C7;
  --syntax-function: #059669;
  --syntax-type: #9333EA;
  --syntax-variable: #0369A1;
  --syntax-operator: #57534E;
  --syntax-preprocessor: #CA8A04;
  --syntax-constant: #BE185D;
  --syntax-builtin: #047857;
  --syntax-error: #B91C1C;
  --code-block-bg: #FBF8F3;
  --inline-code-bg: #F5F1EA;
}

[data-theme=dark] {
  --bg-color: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222222;
  --text-color: #d4d4d4;
  --text-secondary: #999999;
  --accent-color: #d4d4d4;
  --accent-hover: #ffffff;
  --accent-primary: #4a9fbd;
  --border-color: #404040;
  --border-light: #2a2a2a;
  --text-inverted: #1a1a1a;
  --button-hover-bg: #ffffff;
  --button-hover-text: #121212;
  --syntax-keyword: #A78BFA;
  --syntax-string: #F472B6;
  --syntax-comment: #94A3B8;
  --syntax-number: #FDE047;
  --syntax-function: #34D399;
  --syntax-type: #C4B5FD;
  --syntax-variable: #60A5FA;
  --syntax-operator: #CBD5E1;
  --syntax-preprocessor: #FBBF24;
  --syntax-constant: #F9A8D4;
  --syntax-builtin: #6EE7B7;
  --syntax-error: #FCA5A5;
  --code-block-bg: #0F172A;
  --inline-code-bg: #1E293B;
}

body,
.site-header,
.site-footer,
.post-item,
.project-item,
.hero,
.card,
nav,
footer,
a,
button,
.content,
.toc-content,
.toc-reopen,
.toc-mobile-toggle,
.toc-link,
.toc-title {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

* {
  border-radius: 0;
  box-shadow: none;
  text-shadow: none;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

body {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
}

h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  h3 {
    font-size: 1.125rem;
  }
}

p {
  margin-bottom: 2rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  line-height: 1.8;
}

a {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

code, pre {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  background-color: var(--inline-code-bg);
  border: 1px solid var(--border-light);
  font-size: 0.875em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  padding: 0.2em 0.5em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  border-radius: 3px;
}

pre {
  padding: 2rem;
  overflow-x: auto;
  margin: 2rem 0;
  line-height: 1.6;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
pre code {
  padding: 0;
  background: none;
  border: none;
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
}
ul li, ol li {
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  padding-left: 0.5rem;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

blockquote {
  border-left: 3px solid var(--border-color);
  padding: 2rem;
  padding-right: 2rem;
  margin: 3rem 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.125rem;
  background: var(--bg-secondary);
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
blockquote p {
  margin-bottom: 0.5rem;
}
blockquote p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: bold;
}

em {
  font-style: italic;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

.site-header {
  padding: 2rem 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0;
    margin-bottom: 2rem;
  }
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-title {
  font-size: 1rem;
  font-weight: bold;
  display: block;
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-title:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav a {
  font-size: 0.875rem;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.125rem;
}
.site-nav .rss-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border: none;
  transition: transform 0.15s ease;
}
.site-nav .rss-link svg {
  width: 18px;
  height: 18px;
}
.site-nav .rss-link:hover {
  transform: translateY(-2px);
  color: var(--accent-primary);
}
@media (max-width: 480px) {
  .site-nav {
    gap: 1rem;
  }
}

.site-footer {
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 2px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
}
@media (max-width: 768px) {
  .site-footer {
    margin-top: 3rem;
    padding: 1rem 0;
  }
}

.content {
  min-height: calc(100vh - 500px);
}

section {
  margin-bottom: 5rem;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 3rem;
  }
}
section:last-child {
  margin-bottom: 3rem;
}

.post-list,
.project-list {
  list-style: none;
  margin-left: 0;
  margin-bottom: 3rem;
}

.post-item,
.project-item {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}
.post-item:hover,
.project-item:hover {
  border-color: var(--text-color);
  background: var(--bg-secondary);
}
.post-item:last-child,
.project-item:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .post-item,
  .project-item {
    padding: 1rem;
  }
}

.post-meta,
.project-meta {
  font-size: 0.875rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.post-meta .icon,
.project-meta .icon {
  width: 16px;
  height: 16px;
}
.post-meta .meta-separator,
.project-meta .meta-separator {
  margin: 0 0.25rem;
  font-weight: normal;
}

.post-title,
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.post-title a,
.project-title a {
  color: var(--text-color);
  text-decoration: none;
}
.post-title a:hover,
.project-title a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .post-title,
  .project-title {
    font-size: 1.125rem;
  }
}

.post-excerpt,
.project-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.tech-stack {
  font-size: 0.875rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-stack span {
  background: transparent;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.social-links a .icon {
  width: 16px;
  height: 16px;
}
.social-links a:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
  border-color: var(--button-hover-bg);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .social-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  .social-links a {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

.page-header {
  margin-bottom: 5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
  margin-bottom: 1rem;
  line-height: 1.3;
}
.page-header .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.page-header .post-meta {
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .page-header {
    margin-bottom: 3rem;
  }
}

.post {
  margin-bottom: 5rem;
}
.post .page-header {
  margin-bottom: 3rem;
}

.hero {
  padding: 3rem 0;
  margin-bottom: 5rem;
  border: 1px solid var(--border-color);
  padding: 3rem;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero .hero-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero .tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}
@media (max-width: 768px) {
  .hero {
    padding: 2rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero .hero-subtitle {
    font-size: 0.75rem;
  }
  .hero .tagline {
    font-size: 0.875rem;
  }
}

.featured-projects .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .featured-projects .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .featured-projects .project-grid {
    grid-template-columns: 1fr;
  }
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.25rem;
  transition: all 0.2s ease;
}
.view-all .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.view-all:hover {
  border-bottom-color: var(--text-color);
  color: var(--accent-primary);
}
.view-all:hover .icon {
  transform: translateX(4px);
}

.project-video {
  margin-bottom: 3rem;
}
.project-video .video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}
.project-video .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-links {
  margin-top: 2rem;
}
.project-links h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.project-links ul {
  list-style: none;
  margin-left: 0;
}
.project-links ul li {
  margin-bottom: 1rem;
}
.project-links ul a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}
.project-links ul a .icon {
  width: 16px;
  height: 16px;
}
.project-links ul a:hover {
  border-bottom-color: var(--text-color);
}

.intro {
  max-width: 800px;
  margin: 0 auto 5rem;
}
.intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-color);
}
@media (max-width: 768px) {
  .intro {
    margin-bottom: 3rem;
  }
  .intro p {
    font-size: 1rem;
  }
}

.about-preview {
  margin-bottom: 5rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
}
.about-preview h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}
.about-preview p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .about-preview {
    padding: 1rem;
    margin-bottom: 3rem;
  }
}

.latest-posts h2 {
  margin-bottom: 2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.skill-tags .tag {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.813rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.post-tags .tag {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: default;
}
.post-tags .tag:hover {
  background: var(--accent-primary);
  color: var(--text-inverted);
  border-color: var(--accent-primary);
}

.project-status {
  display: inline-block;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-right: 0.5rem;
}
.project-status.status-active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.project-status.status-completed {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}
.project-status.status-in-development {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.project-status.status-maintained {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.project-updated {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.813rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.youtube-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 3rem 0;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}
.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.post-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 700px;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 1.125rem;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .post-content {
    font-size: 1.0625rem;
  }
}
.post-content code, .post-content pre {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
}
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 3rem 0;
  border: 1px solid var(--border-light);
}
.post-content figure {
  margin: 3rem 0;
}
.post-content figure img {
  margin-bottom: 1rem;
}
.post-content figure figcaption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  margin-top: 1rem;
}
.post-content h2 {
  margin-top: 5rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 1.75rem;
}
.post-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
@media (max-width: 768px) {
  .post-content h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
  }
}
.post-content h3 {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 1.375rem;
}
@media (max-width: 768px) {
  .post-content h3 {
    font-size: 1.25rem;
  }
}
.post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}
.post-content p {
  margin-bottom: 2rem;
}
.post-content p:last-child {
  margin-bottom: 0;
}
.post-content ul, .post-content ol {
  margin-bottom: 2rem;
  margin-top: 2rem;
}
.post-content pre {
  margin: 3rem 0;
}
.post-content a {
  font-weight: bold;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.post-content a:hover {
  text-decoration-thickness: 2px;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 5rem 0;
}
.post-content table {
  width: 100%;
  margin: 3rem 0;
  border-collapse: collapse;
}
.post-content table th, .post-content table td {
  padding: 1rem;
  border: 1px solid var(--border-light);
  text-align: left;
}
.post-content table th {
  background: var(--bg-secondary);
  font-weight: bold;
}

.post-actions {
  margin-top: 2rem;
}
.post-actions .medium-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease;
}
.post-actions .medium-button svg {
  width: 16px;
  height: 16px;
}
.post-actions .medium-button:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
  border-color: var(--button-hover-bg);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .post-actions .medium-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  width: 36px;
  height: 36px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  background: var(--button-hover-bg);
  border-color: var(--button-hover-bg);
}
.theme-toggle:hover .icon-light,
.theme-toggle:hover .icon-dark {
  color: var(--button-hover-text);
}
.theme-toggle .icon-light,
.theme-toggle .icon-dark {
  width: 18px;
  height: 18px;
  color: var(--text-color);
  transition: color 0.15s ease;
  display: block;
}
.theme-toggle[data-theme=light] .icon-dark {
  display: none;
}
.theme-toggle[data-theme=dark] .icon-light {
  display: none;
}
@media (max-width: 480px) {
  .theme-toggle {
    width: 32px;
    height: 32px;
    padding: 0.375rem;
  }
  .theme-toggle .icon-light,
  .theme-toggle .icon-dark {
    width: 16px;
    height: 16px;
  }
}

.list-controls {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.controls-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  .controls-row {
    flex-direction: column;
  }
}

.search-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrapper .icon {
  position: absolute;
  left: 1rem;
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.search-input::placeholder {
  color: var(--text-secondary);
}
.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.sort-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.sort-wrapper .icon {
  position: absolute;
  right: 1rem;
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  pointer-events: none;
}

.sort-select {
  appearance: none;
  padding: 0.5rem 3rem 0.5rem 1rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  min-width: 140px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sort-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.sort-select:hover {
  background: var(--bg-secondary);
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.filter-row:last-of-type {
  margin-bottom: 1rem;
}

.filter-label {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-right: 0.25rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.filter-tag {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: all 0.15s ease;
}
.filter-tag:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.filter-tag.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-inverted);
}

.clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-left: auto;
  transition: all 0.15s ease;
}
.clear-filters .icon {
  width: 12px;
  height: 12px;
}
.clear-filters:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
  border-color: var(--button-hover-bg);
  transform: translateY(-2px);
}

.results-count {
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.results-count:empty {
  display: none;
}

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

.no-results {
  padding: 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  border: 1px dashed var(--border-light);
}
.no-results .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 1rem;
}
.no-results p {
  margin: 0;
}

.icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

.icon-inline {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-md {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 20px;
  height: 20px;
}

.highlight {
  background: var(--code-block-bg);
  border: 1px solid var(--border-light);
  padding: 2rem;
  overflow-x: auto;
  margin-bottom: 2rem;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Consolas", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.highlight pre {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}
.highlight code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.highlight .c,
.highlight .cm,
.highlight .c1,
.highlight .cs {
  color: var(--syntax-comment);
  font-style: italic;
}
.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: var(--syntax-keyword);
  font-weight: bold;
}
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr {
  color: var(--syntax-string);
}
.highlight .m,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: var(--syntax-number);
}
.highlight .nf,
.highlight .fm {
  color: var(--syntax-function);
  font-weight: 500;
}
.highlight .nc,
.highlight .nd,
.highlight .ne,
.highlight .ni {
  color: var(--syntax-type);
  font-weight: 600;
}
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi,
.highlight .na {
  color: var(--syntax-variable);
}
.highlight .nb,
.highlight .bp {
  color: var(--syntax-builtin);
}
.highlight .no {
  color: var(--syntax-constant);
}
.highlight .o,
.highlight .ow {
  color: var(--syntax-operator);
}
.highlight .cp {
  color: var(--syntax-preprocessor);
  font-style: normal;
}
.highlight .nt {
  color: var(--syntax-keyword);
  font-weight: 600;
}
.highlight .p {
  color: var(--syntax-operator);
}
.highlight .gd {
  color: var(--syntax-error);
}
.highlight .gi {
  color: var(--syntax-function);
}
.highlight .err {
  color: var(--syntax-error);
  text-decoration: underline wavy;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.hero,
.featured-projects,
.latest-posts,
.page-header {
  animation: fadeIn 0.2s ease;
}

.post-item,
.project-item {
  animation: fadeIn 0.2s ease;
  animation-fill-mode: both;
}
.post-item:nth-child(1),
.project-item:nth-child(1) {
  animation-delay: 0.05s;
}
.post-item:nth-child(2),
.project-item:nth-child(2) {
  animation-delay: 0.1s;
}
.post-item:nth-child(3),
.project-item:nth-child(3) {
  animation-delay: 0.15s;
}
.post-item:nth-child(4),
.project-item:nth-child(4) {
  animation-delay: 0.2s;
}
.post-item:nth-child(5),
.project-item:nth-child(5) {
  animation-delay: 0.25s;
}
.post-item:nth-child(6),
.project-item:nth-child(6) {
  animation-delay: 0.3s;
}
.post-item:nth-child(7),
.project-item:nth-child(7) {
  animation-delay: 0.35s;
}
.post-item:nth-child(8),
.project-item:nth-child(8) {
  animation-delay: 0.4s;
}
.post-item:nth-child(9),
.project-item:nth-child(9) {
  animation-delay: 0.45s;
}
.post-item:nth-child(10),
.project-item:nth-child(10) {
  animation-delay: 0.5s;
}

a,
button,
.post-item,
.project-item,
.social-links a,
.tech-stack span {
  transition: all 0.15s ease;
}

.post-item:hover,
.project-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links a:hover i, .social-links a:hover svg {
  animation: pulse 0.6s ease-in-out;
}

.tech-stack span:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

.view-all {
  transition: all 0.15s ease;
}
.view-all:hover .icon {
  animation: arrowBounce 0.6s ease-in-out infinite;
}

.site-nav a {
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-color);
  transition: width 0.2s ease;
}
.site-nav a:hover::after, .site-nav a.active::after {
  width: 100%;
}
.site-nav a.active {
  border-bottom-color: transparent;
}

.site-title {
  position: relative;
  display: inline-block;
}
.site-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-color);
  transition: width 0.2s ease;
}
.site-title:hover {
  text-decoration: none;
}
.site-title:hover::after {
  width: 100%;
}

.post-title a,
.project-title a {
  position: relative;
}
.post-title a::after,
.project-title a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-color);
  transition: width 0.2s ease;
}
.post-title a:hover,
.project-title a:hover {
  text-decoration: none;
}
.post-title a:hover::after,
.project-title a:hover::after {
  width: 100%;
}

.hero h1 {
  animation: slideIn 0.3s ease;
}
.hero .tagline {
  animation: fadeIn 0.3s ease 0.2s both;
}
.hero .social-links {
  animation: fadeIn 0.3s ease 0.4s both;
}

i[data-feather],
svg {
  transition: transform 0.15s ease;
}

.medium-button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Table of Contents Panel */
.table-of-contents {
  position: fixed;
  top: 50%;
  right: -320px;
  width: 320px;
  max-height: 85vh;
  transform: translateY(-50%);
  transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 100;
}

.table-of-contents.toc-visible {
  right: 0;
}

.toc-content {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.03);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

/* Close button inside TOC */
.toc-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.4;
}

.toc-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.toc-close-icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.toc-close-icon::before,
.toc-close-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: var(--text-color);
  top: 50%;
  left: 0;
  border-radius: 1px;
}

.toc-close-icon::before {
  transform: rotate(45deg);
}

.toc-close-icon::after {
  transform: rotate(-45deg);
}

/* Floating reopen button */
.toc-reopen {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%) translateX(120px);
  opacity: 0;
  pointer-events: none;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.toc-reopen.show {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.toc-reopen:hover {
  border-color: var(--text-color);
  color: var(--text-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) translateX(-2px);
}

.toc-reopen-icon {
  width: 12px;
  height: 9px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.toc-reopen-icon::before,
.toc-reopen-icon::after {
  content: "";
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.toc-reopen-icon::before {
  box-shadow: 0 4px 0 currentColor;
}

.toc-title {
  margin: 0 0 1.75rem 0;
  padding-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

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

.toc-list .toc-list {
  padding-left: 1.125rem;
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.toc-list li {
  margin-bottom: 0.625rem;
}

.toc-list .toc-list li {
  margin-bottom: 0.5rem;
}

.toc-link {
  display: inline-block;
  padding: 0.3125rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.toc-link::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1.5px;
  background: var(--text-color);
  border-radius: 1px;
  transition: width 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.toc-link:hover,
.toc-link.active {
  color: var(--text-color);
}

.toc-link:hover {
  transform: translateX(3px);
  letter-spacing: 0;
}

.toc-link:hover::before {
  width: 1.125rem;
}

.toc-link.active {
  font-weight: 500;
  letter-spacing: 0;
}

.toc-link.active::before {
  width: 0.625rem;
  background: var(--text-color);
}

.toc-level-2 {
  font-weight: 400;
}

.toc-level-3 {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.toc-level-4 {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Scrollbar styling */
.table-of-contents::-webkit-scrollbar {
  width: 4px;
}

.table-of-contents::-webkit-scrollbar-track {
  background: transparent;
}

.table-of-contents::-webkit-scrollbar-thumb {
  background: var(--border-light);
  transition: background 0.2s ease;
}

.table-of-contents::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

@media (max-width: 1200px) {
  .table-of-contents {
    width: 280px;
    right: -280px;
  }
  .toc-content {
    padding: 2.5rem 2rem;
  }
}
@media (max-width: 768px) {
  /* Hide desktop buttons */
  .toc-close {
    display: none;
  }
  .toc-reopen {
    display: none !important;
  }
  /* Mobile wrapper */
  .toc-wrapper {
    margin: 2rem 0;
  }
  /* Mobile toggle button */
  .toc-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 0.05em;
  }
  .toc-mobile-toggle:active {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
  }
  .toc-arrow {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.3s ease cubic-bezier(0.23, 1, 0.32, 1);
  }
  .toc-wrapper.toc-open .toc-arrow {
    transform: rotate(225deg);
  }
  /* Mobile TOC layout */
  .table-of-contents {
    position: static;
    width: 100%;
    max-height: none;
    margin: 0;
    transform: none;
    right: auto;
    transition: none;
  }
  .table-of-contents .toc-content {
    max-height: 0;
    padding: 0 1.75rem;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-top: none;
    background: var(--bg-secondary);
    box-shadow: none;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding-top 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding-bottom 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .table-of-contents.toc-visible .toc-content {
    max-height: 70vh;
    padding: 1.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .toc-title {
    font-size: 0.75rem;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
  }
  .toc-link {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .toc-level-2 {
    font-size: 0.9375rem;
  }
  .toc-level-3 {
    font-size: 0.875rem;
  }
  .toc-level-4 {
    font-size: 0.875rem;
  }
  .toc-list li {
    margin-bottom: 0.625rem;
  }
  .toc-list .toc-list li {
    margin-bottom: 0.5rem;
  }
  /* Mobile scrollbar styling */
  .table-of-contents.toc-visible .toc-content::-webkit-scrollbar {
    width: 4px;
  }
  .table-of-contents.toc-visible .toc-content::-webkit-scrollbar-track {
    background: transparent;
  }
  .table-of-contents.toc-visible .toc-content::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
  }
  .table-of-contents.toc-visible .toc-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
  }
}
/* Hide mobile toggle on desktop */
@media (min-width: 769px) {
  .toc-mobile-toggle {
    display: none;
  }
  .toc-wrapper {
    display: contents;
  }
}

/*# sourceMappingURL=main.css.map */