* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --color-bg: #0a0a0a;
  --color-bg-elevated: #1a1a1a;
  --color-text: #e0e0e0;
  --color-text-muted: #999999;
  --color-accent: #b8b8ff;
  --color-accent-hover: #ffc4e3;
  --color-border: #2a2a2a;
  --color-code-bg: #161616;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  --max-width: 720px;
  --spacing: 1.5rem;
  --spacing-lg: 3rem;
  --transition: 0.2s ease;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.site-footer-note {
  cursor: default;
  display: inline-block;
  color: var(--color-text-muted);
  position: relative;
}
.site-footer-note::after {
  content: var(--footer-hover-message, "hehe. have a great day!");
  color: var(--color-accent-hover);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-60%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.site-footer-note:hover {
  color: transparent;
}
.site-footer-note:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-50%);
}
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
  }
}
.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .site-nav {
    padding: 0 1rem;
  }
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
@media (min-width: 768px) {
  .site-nav ul {
    gap: 1rem;
    justify-content: space-between;
  }
}
.site-nav li {
  margin: 0;
  padding: 0;
}
.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem;
  min-height: 44px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .nav-link {
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    min-height: auto;
  }
}
.nav-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.nav-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
  position: relative;
}
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
@media (min-width: 768px) {
  .nav-link[aria-current="page"]::after {
    left: 0.25rem;
    right: 0.25rem;
  }
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger:hover .hamburger-line {
  background-color: var(--color-accent);
}
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}
@media (max-width: 767px) {
  .site-nav {
    display: none;
  }
}
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 90vw;
  height: 100%;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-sidebar.open {
  transform: translateX(0);
}
@media (min-width: 768px) {
  .mobile-sidebar,
  .nav-overlay {
    display: none !important;
  }
}
.sidebar-close {
  display: flex;
  margin-bottom: 1.5rem;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  margin: 1rem;
  margin-bottom: 1.25rem;
  transition: color 0.2s ease;
}
.sidebar-close:hover {
  color: var(--color-accent);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 2rem;
}
.sidebar-link {
  display: flex;
  margin-bottom: 0.3rem;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}
.sidebar-link:first-child {
  border-top: 1px solid var(--color-border);
}
.sidebar-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.sidebar-link[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: calc(100vh - 8rem);
}
@media (min-width: 768px) {
  .site-main {
    padding: 0 var(--spacing);
  }
}
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing);
  padding: var(--spacing) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.site-footer p {
  margin: 1rem 0 0 0;
}
.footer-contact {
  max-width: 500px;
  margin: 0 auto 1rem auto;
  padding: 0 var(--spacing);
}
.footer-contact h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  color: var(--color-text);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-row {
  width: 100%;
}
.contact-input,
.contact-textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition);
  min-height: 44px;
}
.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contact-textarea {
  resize: vertical;
  min-height: 80px;
}
.contact-submit {
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
  min-height: 44px;
}
.contact-submit:hover {
  background: var(--color-accent-hover);
  color: #1a1a1a;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}
h1 {
  font-size: 1.75rem;
  margin-top: 0;
}
h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}
h3 {
  font-size: 1.25rem;
}
@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.4rem;
  }
}
p {
  margin-bottom: 1.5rem;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background-color: var(--color-code-bg);
  color: #d4d4d4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}
pre {
  background-color: var(--color-code-bg);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}
pre code {
  background-color: transparent;
  padding: 0;
  color: #d4d4d4;
}
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}
li {
  margin-bottom: 0.5rem;
}
blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 8px;
}
.content-article,
.blog-post,
.project,
.writeup,
.gallery {
  margin-bottom: var(--spacing-lg);
}
.article-header,
.post-header,
.project-header,
.writeup-header,
.gallery-header {
  margin-bottom: 2rem;
  text-align: center;
}
.article-title,
.post-title,
.project-title,
.writeup-title,
.gallery-title {
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.article-content,
.post-content,
.project-content,
.gallery-description {
  line-height: 1.8;
}
.post-content em {
  color: #b8b8ff;
  font-style: italic;
}
.post-content code {
  background: #FFFFFF1A;
  color: #b8b8ff;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  border: 1px solid #FFFFFF1A;
}
.post-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}
.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(184, 184, 255, 0.1);
  border-left: 4px solid #b8b8ff;
  border-radius: 0 8px 8px 0;
}
.post-content blockquote p:first-child {
  margin-top: 0;
}
.post-content blockquote p:last-child {
  margin-bottom: 0;
}
.post-content blockquote:has(p:first-child:contains("[!NOTE]")) {
  background: rgba(234, 179, 8, 0.1);
  border-left-color: #eab308;
}
.post-content blockquote p:first-child::before {
  content: "💡 Note: ";
  font-weight: bold;
  color: #b8b8ff;
}
.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.post-date {
  color: var(--color-text-muted);
}
.page-header {
  margin-bottom: 3rem;
  text-align: center;
}
.page-header h1 {
  margin-bottom: 0.5rem;
}
.page-description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin: 0;
}
.blog-list {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .blog-list {
    gap: 2rem;
    padding: 0 var(--spacing);
  }
}
.post-preview {
  display: block;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
@media (min-width: 768px) {
  .post-preview {
    padding: 2rem;
  }
}
.post-preview * {
  text-decoration: none !important;
}
.post-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 184, 255, 0.5);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
  text-decoration: none !important;
}
.post-preview-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.post-preview:last-child {
  border-bottom: none;
}
.post-preview-content {
  flex: 1;
  min-width: 0;
}
.preview-header {
  margin-bottom: 1rem;
}
.preview-title {
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  color: var(--color-accent);
  text-decoration: none;
}
@media (min-width: 768px) {
  .preview-title {
    font-size: 1.25rem;
  }
}
.post-preview:hover .preview-title {
  color: var(--color-accent-hover);
  text-decoration: none;
}
.preview-title a {
  color: inherit;
  text-decoration: none !important;
  pointer-events: none;
}
.preview-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.preview-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.preview-description {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .post-preview {
    gap: 1.5rem;
    justify-content: center;
  }
  .preview-date {
    align-self: flex-start;
  }
}
.writeup-grid {
  max-width: 1200px;
  margin: 0 auto;
  column-count: 1;
  column-gap: 2rem;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .writeup-grid {
    column-count: 2;
    padding: 0 var(--spacing);
  }
}
.writeup-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
.writeup-card * {
  text-decoration: none !important;
}
.writeup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 184, 255, 0.5);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
  text-decoration: none !important;
}
.writeup-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  color: var(--color-accent);
  text-decoration: none;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .writeup-card-title {
    font-size: 1.5rem;
  }
}
.writeup-card-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.writeup-card-excerpt {
  color: var(--color-text-muted);
  line-height: 1;
  font-style: italic;
  margin: 0.75rem 0;
}
.writeup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.writeup-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(229, 217, 242, 0.2);
  border: 1px solid rgba(229, 217, 242, 0.4);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}
.writeup-list {
  max-width: 800px;
  margin: 0 auto;
}
.writeup-preview {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}
.writeup-preview:last-child {
  border-bottom: none;
}
.list-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.list-header h1 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}
@media (min-width: 768px) {
  .list-header {
    padding: 0 var(--spacing);
    margin-bottom: 2rem;
  }
  .list-header h1 {
    font-size: 2rem;
  }
}
.list-description {
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.list-description p {
  margin: 0;
}
.list-description {
  font-size: 1rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--color-text-muted);
}
.project-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .project-grid {
    gap: 2rem;
    padding: 0 var(--spacing);
  }
}
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  color: inherit;
}
@media (min-width: 768px) {
  .project-card {
    padding: 2rem;
  }
}
.project-card * {
  text-decoration: none !important;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 184, 255, 0.5);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
  text-decoration: none !important;
}
.project-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  color: var(--color-text);
  text-decoration: none;
}
@media (min-width: 768px) {
  .project-card-title {
    font-size: 1.5rem;
  }
}
.project-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  justify-content: flex-start;
  align-items: center;
}
.project-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  height: 44px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}
@media (min-width: 768px) {
  .project-btn {
    height: 40px;
    font-size: 0.9rem;
  }
}
.project-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.project-btn-github {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.project-btn-github:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}
.project-btn-readme {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: var(--color-bg);
}
.project-btn-readme:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #1a1a1a;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .project-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .project-btn {
    width: 100%;
  }
}
.project-card-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.project-grid .project-card-date {
  display: none;
}
.project-card-excerpt {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.project-card-tech {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.writeup-preview-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}
.writeup-preview-title a {
  color: var(--color-text);
  text-decoration: none;
}
.writeup-preview-title a:hover {
  color: var(--color-link);
}
.writeup-preview-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.writeup-preview-excerpt {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
}
.writeup-preview-tech {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.writeup {
  max-width: 600px;
  margin: 0 auto;
}
.writeup-title {
  text-align: center;
  margin-bottom: 2rem;
}
.writeup-date {
  display: block;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}
.writeup-content {
  line-height: 2;
  font-size: 1.1rem;
  margin: 1rem 0;
}
.writeup-content.align-center {
  text-align: center;
}
.writeup-content.align-left {
  text-align: left;
}
.writeup-stanza {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.writeup-stanza:last-child {
  margin-bottom: 0;
}
.writeup-line {
  display: block;
  white-space: pre-wrap;
}
.writeup-content p {
  margin: 0;
}
.poem-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.poem-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.gallery-list {
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-preview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}
.gallery-preview:last-child {
  border-bottom: none;
}
.gallery-preview-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}
.gallery-preview-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gallery-preview-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}
.gallery-preview-title a {
  color: var(--color-text);
  text-decoration: none;
}
.gallery-preview-title a:hover {
  color: var(--color-link);
}
.gallery-preview-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.gallery-preview-excerpt {
  color: var(--color-text-muted);
  line-height: 1.6;
}
.gallery {
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-header {
  text-align: center;
  margin-bottom: 2rem;
}
.gallery-title {
  margin-bottom: 0.5rem;
}
.gallery-date {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.gallery-description {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  line-height: 1.8;
  color: var(--color-text-muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.gallery-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem;
}
@media (max-width: 768px) {
  .gallery-preview {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery-preview-image {
    height: 150px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .gallery-item img {
    height: 200px;
  }
}
.project-tech {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.project-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition);
}
.project-link:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  text-decoration: none;
  transform: translateX(2px);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--transition);
}
.gallery-grid img:hover {
  transform: scale(1.02);
}
@media (max-width: 640px) {
  .post-preview-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }
  a {
    padding: 0.25rem 0;
  }
  .contact-form {
    gap: 0.65rem;
  }
  .contact-input,
  .contact-textarea {
    padding: 0.7rem;
    font-size: 0.95rem;
  }
  .contact-submit {
    width: 100%;
    text-align: center;
  }
  #fluid {
    display: none;
  }
  h3 {
    font-size: 1.25rem;
  }
  .site-nav {
    gap: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .gallery-grid img {
    height: 150px;
  }
}
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}
::-moz-selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}
