/* nithin434.github.io — plain monochrome, late-90s/2000s tech homepage. */
html { background: #fff; }
body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.45;
}
#page { max-width: 780px; margin: 0 auto; padding: 18px 16px 40px; }

a { color: #000; text-decoration: underline; }
a:visited { color: #444; }
a:hover { background: #000; color: #fff; text-decoration: none; }

h1, h2, h3, #nav, .mono, pre, code, #footer {
  font-family: "Courier New", Courier, monospace;
}
h1 { font-size: 28px; margin: 0 0 2px; letter-spacing: 1px; }
h1 .cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h2 { font-size: 18px; margin: 30px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
h2::before { content: "## "; }
h3 { font-size: 16px; margin: 18px 0 2px; }
hr { border: 0; border-top: 1px dashed #000; margin: 22px 0; }
ul { padding-left: 22px; margin: 6px 0; }
li { margin: 3px 0; }
.meta, small { color: #555; font-size: 14px; }

#nav { font-size: 14px; border-bottom: 1px solid #000; padding-bottom: 6px; margin-bottom: 18px; }
#nav b { font-weight: bold; }
#nav i, h2 i, h3 i { font-size: 0.9em; }
#nav { line-height: 1.8; }

table.bio { border-collapse: collapse; width: 100%; }
table.bio td { vertical-align: top; padding: 0; }
table.bio td.pic { width: 176px; padding-right: 22px; }
img.avatar, img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
img.avatar { width: 160px; height: 160px; border: 2px solid #000; }
img.px { width: 24px; height: 24px; vertical-align: -5px; margin-right: 6px; }

.news td { vertical-align: top; padding: 2px 12px 2px 0; }
.news td.d { white-space: nowrap; font-family: "Courier New", monospace; font-size: 14px; }

.proj { overflow: hidden; margin: 20px 0; }
.proj img.photo { float: left; width: 210px; height: auto; margin: 4px 16px 8px 0; border: 1px solid #000; filter: grayscale(1); }
.proj img.photo:hover { filter: none; }
.tools { font-family: "Courier New", monospace; font-size: 13px; }

/* gallery: add a <figure> to a .grid and it lays itself out */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid figure { margin: 0; font-size: 15px; }
.grid img { display: block; width: 100%; height: 170px; object-fit: cover; border: 1px solid #000; filter: grayscale(1); }
.grid img:hover { filter: none; }
.grid a:hover { background: none; }
.grid figcaption { margin-top: 4px; }
.grid.certs img { object-fit: contain; background: #fff; }

.terms { columns: 2; column-gap: 28px; }
.terms li { break-inside: avoid; }

pre.cite { border: 1px solid #000; padding: 10px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }

#footer { margin-top: 36px; border-top: 1px solid #000; padding-top: 8px; font-size: 12px; }
#footer img { image-rendering: pixelated; vertical-align: middle; }

@media (max-width: 600px) {
  table.bio td { display: block; }
  table.bio td.pic { width: auto; padding: 0 0 12px; }
  .proj img.photo { float: none; width: 100%; margin: 0 0 8px; }
  .terms { columns: 1; }
}
