@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wdth,wght@90,200..900;100,200..900&family=Karla:wght@200..800&display=swap");
.book-grid {
  display: grid;
  grid-template-columns: 2;
  gap: 1.5rem;
  padding: 1rem 0;
}
@media (min-width: 768px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 480px) and (max-width: 767px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.book-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
  animation: projectsflicker 5s infinite alternate;
}
.book-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}
.book-card .book-cover {
  display: block;
  margin-top: 0.5rem;
}
.book-card .book-cover img {
  border-radius: 0.14rem;
  display: block;
  width: 80%;
  /* height: 280px; */
  height: auto;
  max-height: 250px;
  object-fit: cover;
  transition: filter 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.book-card .book-cover img:hover {
  filter: brightness(0.6);
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.book-card .book-content {
  padding: 1rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.book-card .book-content .book-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0rem;
}
.book-card .book-content .book-title:hover {
  text-decoration: underline;
}
.book-card .book-content .book-date {
  font-size: 0.85rem;
  color: #909090;
}

html {
  display: flex;
  max-width: 75ch;
  padding: 3em 1em;
  justify-content: center;
  margin: auto;
  line-height: 1.5;
  font-size: 1.2em;
  font-family: "Inconsolata", monospace;
  font-variation-settings: "wdth" 97;
}

.excerpt {
  font-size: 1em;
  line-height: 1.5;
  margin: 0 0 0.5em;
}

.nextread {
  line-height: 1.5;
}

.caption {
  color: #909090;
  font-size: 82%;
  font-style: italic;
  text-align: center;
}
.caption a {
  color: #909090;
  text-decoration: underline;
  text-decoration-color: #909090;
}

.fcrow {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 0;
  align-items: center;
}

.neonText, h1, h2, h3 {
  animation: flicker 5s infinite alternate;
}

.coredesc {
  padding: 0;
  margin: 0 auto 0.6rem;
  color: #c9c9c9;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 0 0 1px #fff, 0 0 18px var(--flicker-color);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}
@keyframes projectsflicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    box-shadow: 0 0 1px #fff, 0 0 10px var(--flicker-color);
  }
  20%, 24%, 55% {
    box-shadow: none;
  }
}
body {
  overflow-x: hidden;
}

@media screen and (prefers-color-scheme: dark) {
  strong {
    color: #e9c46a;
  }
}
@media screen and (prefers-color-scheme: light) {
  strong {
    color: #ff9770;
  }
}

@media screen and (prefers-color-scheme: dark) {
  em {
    color: #a2d2ff;
  }
}
@media screen and (prefers-color-scheme: light) {
  em {
    color: #9770ff;
  }
}

iframe {
  max-width: 100%;
  margin: auto;
  display: block;
}

mjx-container {
  border-radius: 15px;
  overflow-x: auto;
  overflow-y: hidden;
}

@media screen and (max-width: 650px) {
  html {
    font-size: 110%;
  }
}
@media screen and (prefers-color-scheme: light) {
  html {
    color: black;
  }
  ::selection {
    background: #c8fffd;
  }
}
@media screen and (prefers-color-scheme: light) {
  html {
    color: black;
  }
  ::selection {
    background: #c8fffd;
    background: #e0e0e0;
  }
  table,
  th,
  td {
    border: thin solid black;
  }
  a {
    color: black;
  }
  h4.excerpt {
    color: #909090;
  }
}
@media screen and (prefers-color-scheme: dark) {
  html {
    color: #e0e0e0;
    background-color: #121212;
  }
  ::selection {
    background: #c8fffd;
    color: black;
  }
  pre,
  code {
    background: #3c3c3c;
  }
  table,
  th,
  td {
    border: thin solid #e0e0e0;
  }
  a {
    color: #e0e0e0;
  }
  h4.excerpt {
    color: #b5b5b5;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Karla", sans-serif;
  margin: 1em 0 0.5em;
}

h1, h2, h3 {
  font-weight: 200;
}

.title {
  margin: 1em 0 0.2em;
}

p,
ol {
  margin-bottom: 1em;
}

.postlist {
  padding: unset;
  list-style-type: none;
}

.post {
  margin: 0 0 1.5em;
  display: list-item;
  list-style-type: none;
  padding-bottom: 0.5em;
  padding-right: 0.5em;
}
@media screen and (prefers-color-scheme: light) {
  .post {
    box-shadow: 0px 3px 0px black, 4px 0px 0px 0px black;
  }
}
@media screen and (prefers-color-scheme: dark) {
  .post {
    box-shadow: 0px 3px 0px #e0e0e0, 4px 0px 0px 0px #e0e0e0;
  }
}

.post-meta {
  text-align: right;
}

.footnote-item {
  line-height: 1.2;
}

.edit {
  padding: 1rem;
  border-radius: 15px;
}
@media screen and (prefers-color-scheme: light) {
  .edit {
    border: thin solid #000000;
  }
}
@media screen and (prefers-color-scheme: dark) {
  .edit {
    border: thin solid #e0e0e0;
  }
}

img {
  max-width: 100%;
  margin: 0.5rem auto;
  display: block;
  height: auto;
}

blockquote {
  border-left: 2px solid var(--flicker-color);
  /* font-style: italic; */
  margin: 0 0.3rem 0 0.3rem;
  /* background: linear-gradient(to right, rgba(var(--flicker-color), 0.8)0%, transparent 50%); */
}
blockquote p {
  margin: 0 0.3rem 0 1.5rem;
}

pre {
  font-size: 14px;
  max-height: 300px;
  overflow: scroll;
  padding: 1rem;
  border-radius: 15px;
  white-space: pre-wrap;
  word-break: break-all;
}

code {
  padding: 2px 6px 3px;
  border-radius: 3px;
}

table {
  width: 100%;
}

table,
th,
td {
  border-collapse: collapse;
  padding: 0.4rem;
}

.table-wrapper {
  overflow-x: auto;
}

a {
  text-decoration: underline;
  text-decoration-thickness: 0.3ex;
  text-decoration-color: #5b84b1;
}
a:hover {
  font-weight: bold;
  text-decoration-color: #fc766a;
}

.posttitle {
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
}
.posttitle:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.3ex;
  text-decoration-color: #5b84b1;
}

.header-anchor {
  color: #909090;
  text-decoration: none;
}
@media screen and (min-width: 700px) {
  .header-anchor {
    left: 0.15rem;
    position: relative;
    width: 0.8em;
  }
}

@media screen and (min-width: 700px) and (hover: hover) {
  .header-anchor__symbol {
    visibility: hidden;
  }
  h2:hover .header-anchor__symbol, h3:hover .header-anchor__symbol, h4:hover .header-anchor__symbol, h5:hover .header-anchor__symbol, h6:hover .header-anchor__symbol, .header-anchor:focus .header-anchor__symbol {
    visibility: visible;
  }
}

.screen-reader-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.archive {
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
}
.archive:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.3ex;
  text-decoration-color: #5b84b1;
}

@media screen and (prefers-color-scheme: light) {
  .footnote-link {
    text-decoration: none;
    color: #0c359e;
  }
}
@media screen and (prefers-color-scheme: dark) {
  .footnote-link {
    text-decoration: none;
    color: #5b84b1;
  }
}
.footnote-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.3ex;
  text-decoration-color: #fc766a;
}

.breadcrumb {
  font-weight: bold;
  text-decoration: none;
}
.breadcrumb:hover {
  animation: flicker 5s infinite alternate;
}

tag {
  font-size: 80%;
  margin: 0;
}
tag #life {
  text-decoration-color: #ffd670;
}
tag #literature {
  text-decoration-color: #70d6ff;
}
tag #books {
  text-decoration-color: #e9ff70;
}
tag #philosophy {
  text-decoration-color: #ff9770;
}
tag #technical {
  text-decoration-color: #e9ff70;
}
tag #musings {
  text-decoration-color: #ff70a6;
}
tag #debugging {
  text-decoration-color: #ffd670;
}
tag #essay {
  text-decoration-color: #70d6ff;
}
tag #rationality {
  text-decoration-color: #e9ff70;
}
tag #people {
  text-decoration-color: #ff9770;
}
tag #culture {
  text-decoration-color: #ff70a6;
}
tag #psychology {
  text-decoration-color: #70ff99;
}
tag #fitness {
  text-decoration-color: #70ff99;
}
tag #math {
  text-decoration-color: #9770ff;
}
tag #assamese {
  text-decoration-color: #9770ff;
}

nav {
  text-align: center;
  margin-top: 0;
  margin-bottom: 25px;
}

.nonglobal {
  display: none;
}

.blog {
  margin-top: 25px;
  margin-bottom: 10px;
}

.current {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.3ex;
  text-decoration-color: #fc766a;
}

footer {
  font-size: 75%;
  text-align: center;
  padding: 25px;
  padding-top: 0.5em;
}

.card-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  column-gap: 0.6rem;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.card {
  background-color: #1e1e1e;
  color: #fff;
  padding: 0 1rem;
  border-radius: 1rem;
  min-width: 235px;
  flex-shrink: 1;
  scroll-snap-align: start;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  animation: projectsflicker 5s infinite alternate;
}

.cardtitle {
  font-weight: bold;
}

.carddesc {
  font-size: 0.9rem;
  color: #909090;
}

.tag {
  display: flex;
  flex-direction: row;
}
@media screen and (max-width: 500px) {
  .tag {
    flex-direction: column;
  }
}

.twitter-tweet {
  margin: auto;
}

.nutshell-bubble-overflow-section svg {
  display: none;
}

.reading {
  margin-left: auto;
  font-size: 80%;
}
@media screen and (max-width: 500px) {
  .reading {
    margin: 0;
  }
}

audio {
  width: 100%;
  padding: 1em 0 1em;
}

.hero {
  position: fixed; /* stays behind content */
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh; /* adjust height of hero */
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.6);
  transition: opacity 0.5s ease-out; /* smooth fade */
  opacity: 1;
  transform: scale(1.05); /* prevents edge gaps when blurred */
  z-index: -1; /* keeps it behind everything */
}

/* gradient overlay for fading into page background */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.4), rgba(18, 18, 18, 0) 50%, rgba(18, 18, 18, 0.8) 80%, rgb(18, 18, 18) 100%);
}

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