/* This is the main stylesheet for the site. */
/* Desktop */
header {
  padding-right: 0;
  }
  
  main {
  line-height: 1.7;
  }
  
  @font-face {
    font-family: 'ZT Bros Oskon 90s';
    src: url('../fonts/ZTBrosOskon90s.woff2') format('woff2'),
         url('../fonts/ZTBrosOskon90s.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }
  
  body {
    background-color: #e8eadc;
    color: #444851;
    font-family: 'CMU Serif', 'Computer Modern Serif', 'Latin Modern Roman', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.55; /* closer to TeX default */
    margin: 0 auto;
    max-width: 72ch;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
  }

  /* Monospace for code-related elements */
  pre, code, kbd, samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  }

  /* Headings scale tuned for readability */
  h1 {
    font-size: clamp(2.75rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .slash-title {
    color: #6b7280;
    font-weight: 500;
  }

  h2 {
    font-size: clamp(1.75rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  /* Prose tweaks: inline and block code */
  code {
    background: #f6f8fa;
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
    font-size: 0.95em;
  }

  pre {
    background: #f6f8fa; /* GitHub-like */
    border-radius: 0.375rem;
    padding: 1rem;
    overflow-x: auto;
  }

  pre code {
    background: transparent;
    padding: 0;
    font-size: 0.95em;
  }

  /* Prose tweaks: blockquotes */
  blockquote {
    border-left: 2px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1.25rem 0;
    color: #374151;
  }

  /* LaTeX-like paragraph rhythm */
  p {
    margin: 0 0 1em;
    hyphens: auto;
  }
  /* Indent subsequent paragraphs like TeX */
  p + p {
    text-indent: 1.25em;
    margin-top: 0;
  }

  /* Dark theme variants */
  body.dark-theme code {
    background: #151a20;
    color: #e6edf3;
  }

  body.dark-theme pre {
    background: #0d1117; /* GitHub dark */
  }

  body.dark-theme blockquote {
    border-left-color: #334155;
    color: #cbd5e1;
  }

  /* Lists spacing within prose */
  ul, ol {
    padding-left: 1.25rem;
  }
  li:not(:last-child) {
    margin-bottom: 0.5rem;
  }
  
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  margin-right: 15px;
  margin-bottom: 15px;
}

.name-and-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
}

.name-and-toggle h2 {
  margin: 0;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1em;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s;
  color: inherit;
}

#theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

body.dark-theme #theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
body.dark-theme #theme-toggle {
  color: #e0e0e0;
}

/* Size Lucide SVG icons inside the theme toggle */
#theme-toggle svg {
  width: 1.2em;
  height: 1.2em;
}

/* Update dark theme styles */
body.dark-theme {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-theme a:link,
body.dark-theme a:visited {
  color: #66b3ff;
}

body.dark-theme a:hover,
body.dark-theme a:active {
  color: #99ccff;
}
  
  footer {
  padding-top: 2%;
  padding-bottom: 2%;
  font-size: 100%;
  align-items: center;
  }
  
  a:link,
  a:visited {
  color: #1f2b38;
  background-color: transparent;
  text-decoration: none;
  }
  
  a:hover {
  color: #0366D6;
  background-color: transparent;
  text-decoration: underline;
  }
  
  li:not(:last-child) {
  margin-bottom: 15px;
  }
  .social-media-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.social-media-list li a {
  color: #444851;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.social-media-list li a i {
  width: 25px;
}

.social-media-list li a span {
  font-size: 1rem;
}

/* add dark theme support for social icons */
body.dark-theme .social-media-list li a {
  color: #e0e0e0;
}

.social-media-list li a img {
  width: 30px;
  height: 30px;
  margin-right: 5px;
}
  
/* Global subtle vb banner at viewport bottom */
body::after {
  content: "vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb vbvbvbvb";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  line-height: 28px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  opacity: 0.8; /* 80% opacity as requested */
  color: #444851;
  padding-left: 10px;
  pointer-events: none;
  z-index: 100;
  backdrop-filter: blur(8px) saturate(140%) contrast(105%);
  background-color: rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Banner behind the vb train that can animate with scroll */
body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0.06) 0 2px, rgba(0,0,0,0) 2px 8px);
  opacity: 0.5;
  z-index: 99; /* behind text */
  pointer-events: none;
  transform: translateY(var(--vb-banner-offset, 0px));
}

/* Dark theme glass effect for vb bar */
body.dark-theme::after {
  background-color: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

/* Model viewer section styling */
.model-section {
  margin-top: 20px;
}

model-viewer {
  width: 100%;
  height: 320px;
  background: transparent;
}

@media (max-width: 600px) {
  model-viewer {
    height: 240px;
  }
}

/* Responsive tweaks for narrow viewports */
@media (max-width: 640px) {
  body {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 2rem;
  }
  h1 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }
}
  