/* Custom properties for company links */
:root {
  --color-rippling: purple;
  --color-shopify: green;
  --color-yuzu: #ff4d01;
  --color-untether: #210F69;
}

.latex-dark {
  --color-rippling: #d896ff;
  --color-shopify: #90EE90;
  --color-yuzu: #ff9d70;
  --color-untether: #8870ff;
}

/* Global overrides for this site */
body {
  color: var(--body-color);
}

a,
a:visited {
  color: var(--body-color);
}

/* Index.html specific */
#name {
  font-size: 1.5em;
  padding-top: 3em;
}

/* Blog list styles (writing.html) */
.blog-list {
  margin-top: 2em;
}

.blog-post-item {
  margin-bottom: 1em;
}

.blog-post-title {
  font-size: 1.2em;
  display: inline;
}

.blog-post-date {
  color: #666;
  font-size: 0.9em;
  display: inline;
  margin-left: 1em;
}

.blog-post-excerpt {
  color: #555;
  margin-top: 0.5em;
}

/* Blog post styles (post.html) */
#blog-content {
  color: var(--body-color);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.post-date {
  color: #666;
  margin-bottom: 2em;
  font-size: medium;
}

.post-title {
  font-size: xx-large;
  margin-top: 1em;
  color: var(--body-color);
}

.loading {
  color: #666;
}

#blog-content p,
#blog-content h1,
#blog-content h2,
#blog-content h3,
#blog-content h4,
#blog-content h5,
#blog-content h6,
#blog-content li,
#blog-content ul,
#blog-content ol {
  color: var(--body-color);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Dark mode toggle button */
#dark-mode-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  transition: transform 0.2s ease;
  line-height: 1;
}

#dark-mode-toggle:hover {
  transform: scale(1.1);
}

#dark-mode-toggle:focus {
  outline: none;
}
