/* venkatprabhu.blog — Clean Academic Style */

/* Computer Modern — the LaTeX font */
@font-face {
  font-family: 'Computer Modern Serif';
  src: url('../fonts/cmunrm.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Computer Modern Serif';
  src: url('../fonts/cmunbx.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'Computer Modern Serif';
  src: url('../fonts/cmunti.woff') format('woff');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: 'Computer Modern Serif';
  src: url('../fonts/cmunbi.woff') format('woff');
  font-weight: bold;
  font-style: italic;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: "Computer Modern Serif", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: #111;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  font-synthesis: weight;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Computer Modern Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
h2 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.3rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: #2c5282;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
li { margin-bottom: 0.3rem; }

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
nav {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav .site-name {
  font-family: "Computer Modern Serif", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}
nav .site-name:hover {
  text-decoration: none;
  color: #2c5282;
}

nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav .nav-links a {
  color: #555;
  font-size: 0.9rem;
  text-transform: lowercase;
}
nav .nav-links a:hover,
nav .nav-links a.active {
  color: #2c5282;
}

/* Home: Header / Bio */
.home-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.home-header .photo {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
}

.photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.home-header .intro h1 {
  margin-bottom: 0.15rem;
}

.home-header .intro .subtitle {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.quick-links li::before {
  content: none;
}

/* Section */
section {
  margin-bottom: 2.5rem;
}

/* Project Cards */
.project {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f0f0f0;
}
.project:last-child {
  border-bottom: none;
}

.project h3 {
  margin-top: 0;
  margin-bottom: 0.15rem;
}

.project .meta {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.project p {
  margin-bottom: 0.5rem;
}

.project .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project .tag {
  background: #f5f5f5;
  color: #555;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.78rem;
}

/* Resume / CV */
.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cv-download {
  font-size: 0.85rem;
  color: #2c5282;
  border: 1px solid #2c5282;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
}
.cv-download:hover {
  background: #2c5282;
  color: #fff;
  text-decoration: none;
}

.cv-entry {
  margin-bottom: 1.25rem;
}

.cv-entry h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.cv-entry .cv-org {
  color: #555;
  font-size: 0.95rem;
}

.cv-entry .cv-date {
  color: #888;
  font-size: 0.85rem;
}

.cv-entry ul {
  margin-top: 0.4rem;
  margin-bottom: 0;
}

/* Blog */
.blog-list {
  list-style: none;
  padding: 0;
}

.blog-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.blog-list li:last-child {
  border-bottom: none;
}

.blog-list .post-date {
  color: #888;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.2rem;
}

.blog-list .post-title {
  font-family: "Computer Modern Serif", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.blog-list .post-excerpt {
  color: #555;
  font-size: 0.92rem;
  margin-top: 0.3rem;
}

/* Blog Post Article */
article.blog-post {
  margin-bottom: 3rem;
}

article.blog-post .post-meta {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

article.blog-post h1 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

article.blog-post blockquote {
  border-left: 3px solid #e0e0e0;
  padding-left: 1rem;
  color: #555;
  margin: 1rem 0;
  font-style: italic;
}

article.blog-post code {
  background: #f5f5f5;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

article.blog-post pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
}

article.blog-post pre code {
  background: none;
  padding: 0;
}

article.blog-post img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Empty state */
.empty-state {
  color: #999;
  font-style: italic;
  padding: 2rem 0;
  text-align: center;
}

/* Footer */
footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: #999;
  font-size: 0.8rem;
  text-align: center;
}

/* Print */
@media print {
  nav, footer { display: none; }
  body { font-size: 12pt; }
  .container { max-width: 100%; padding: 0; }
  a { color: #111; }
  h2 { border-bottom-color: #ccc; }
}

/* Mobile */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .home-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .quick-links {
    justify-content: center;
  }

  nav .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cv-header {
    flex-direction: column;
  }
}
