@font-face {
  font-family: ibm plex mono;
  src: url(/fonts/ibm-plex-mono.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: ibm plex mono light;
  src: url(/fonts/ibm-plex-mono-light.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: helvetica light;
  src: url(/fonts/helvetica-light.ttf);
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 20px;
  font-family: Helvetica, sans-serif;
  font-size: 16px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding: 44px 44px 0;
  background-color: #101010;
  color: #fff;
}

.home-container, .single-container { display: flex; flex-direction: column; }
.sidebar { max-width: 400px; width: 100%; }
.main-content, #page-content { overflow: visible; height: auto; }

.images {
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  flex-shrink: 0;
}

.main-content article {
  max-width: 400px;
  width: 100%;
  font-family: ibm plex mono, Courier, monospace;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-content-article {
  position: fixed;
  margin-left: 440px;
  width: 400px;
  display: flex;
  flex-direction: column;
}

.images figure { margin-bottom: 28px; }
.images img { border: 1px solid rgba(255, 255, 255, 0.25); margin-bottom: 4px; }
.divider { width: 100%; height: 1px; background-color: rgba(255, 255, 255, 0.4); }

.summary {
  font-family: helvetica light, sans-serif;
  text-align: justify;
  line-height: 22px;
  letter-spacing: 0.51px;
  font-size: 17px;
  margin-bottom: 8px;
  background-color: #101010;
  padding: 8px 0;
  z-index: 10;
}

.embed-video-container {
  max-width: 400px;
  margin: 0 auto 28px;
  padding: 12px;
  background-color: #101010;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.embed-video-container .tiktok-embed,
.embed-video-container .tiktok-embed iframe { width: 100% !important; background-color: #101010; }

nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

nav a:hover p, nav a:hover .sidebar-subtitle { color: #94162d; transition: color 0.3s ease-in-out; }

nav p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  letter-spacing: 0.54px;
  text-overflow: ellipsis;
}

nav a.active p { color: #fff; }
nav a.active { animation: blink 0.35s 3; }
body:not(.home) nav a.active p { color: #fff; }

.sidebar-subtitle {
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.42px;
  color: rgba(255, 255, 255, 0.4);
  font-family: ibm plex mono, Courier, monospace;
}

button[type="button"] {
  margin: 0;
  padding: 12px 24px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  cursor: pointer;
  line-height: 20px;
  font-family: Helvetica, sans-serif;
  font-size: 18px;
  letter-spacing: 0.54px;
  color: #fff;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

button[type="button"]:hover {
  background-color: #94162d;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

button[type="button"]:active { transform: translateY(0); background-color: #94162d; }

.social-icons {
  display: flex;
  flex-direction: row;
  gap: 16px; /* spacing between icons */
  margin-top: 8px;
}

.fade-in { animation: fadeIn 0.3s ease-in; }
.fade-out { animation: fadeOut 0.3s ease-in; }

.modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-items: center;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-line:nth-child(1) {
  transform: translateY(0);
}

.hamburger-line:nth-child(2) {
  opacity: 1;
}

.hamburger-line:nth-child(3) {
  transform: translateY(0);
}

/* Active/Open State */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hover Effects */
.hamburger:hover .hamburger-line {
  background-color: #94162d;
}

.hamburger.active:hover .hamburger-line {
  background-color: #94162d;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 16, 16, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 80px 20px 20px;
}

.mobile-nav-content nav {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-nav-content nav a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

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

.mobile-nav-content nav a:hover {
  background-color: rgba(148, 22, 45, 0.1);
  transform: translateY(-2px);
}

.mobile-nav-content nav a p {
  font-size: 20px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.mobile-nav-content nav a:hover p {
  color: #94162d;
}

.mobile-nav-content nav a.active p {
  color: #fff;
}

.mobile-nav-content .sidebar-subtitle {
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.42px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'ibm plex mono', Courier, monospace;
}

@media (min-width: 768px) {
  .sidebar { width: 240px; flex-shrink: 0; }
  .single-container, .home-container, .main-content { display: flex; flex-direction: row; gap: 40px; }
  #page-content { display: flex; align-items: flex-start; gap: 40px; width: 100%; }
  .main-content-article { margin-left: 440px; width: 400px; }
  .images { flex: 0 0 auto; max-width: 400px; }
  nav { position: fixed; }
  .modal.show { opacity: 1; visibility: visible; }
  .modal-content { max-width: 90%; max-height: 90%; object-fit: contain; transform: scale(0.95); transition: transform 0.2s ease; }
  .modal.show .modal-content { transform: scale(1); }
  .close { position: absolute; top: 20px; left: 30px; color: #fff; font-size: 40px; font-weight: bold; transition: 0.2s; cursor: pointer; }
  .close:hover { color: #94162d; }
}

@media (max-width: 767px) {
  body { padding: 60px 20px 0; }
  .home .main-content { display: none; }
  
  /* Hide the regular sidebar navigation completely on mobile */
  .sidebar nav {
    display: none;
  }
  
  .single-container, .home-container { display: flex; flex-direction: column; gap: 16px; }
  
  /* Show hamburger only on mobile */
  .hamburger {
    display: flex;
  }
  
  .mobile-nav-overlay {
    display: block;
  }
  
  /* Mobile modal styles */
  .modal.show { opacity: 1; visibility: visible; }
  .modal-content { 
    max-width: 95%; 
    max-height: 85%; 
    object-fit: contain; 
    transform: scale(0.95); 
    transition: transform 0.2s ease;
    margin: auto;
  }
  .modal.show .modal-content { transform: scale(1); }
  .close { 
    position: absolute; 
    top: 15px; 
    left: 20px; 
    color: #fff; 
    font-size: 35px; 
    font-weight: bold; 
    transition: 0.2s; 
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .close:hover { color: #94162d; }
}

@media (max-width: 1200px) {
  .main-content { display: flex; flex-direction: column; gap: 16px; }
  .main-content-article { position: relative; margin-left: 0; width: 100%; }
  .summary { border-top: 1px solid rgba(255, 255, 255, 0.4); padding-top: 12px; }
}

/* Tablet and up - hide hamburger */
@media (min-width: 768px) {
  .hamburger {
    display: none !important;
  }
  
  .mobile-nav-overlay {
    display: none !important;
  }
}

/* Animation for smooth entrance */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-overlay.active .mobile-nav-content nav a {
  animation: slideInFromTop 0.4s ease forwards;
}

.mobile-nav-overlay.active .mobile-nav-content nav a:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-content nav a:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-content nav a:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-content nav a:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-content nav a:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }