/* ==========================================================================
   Arnab Dev — personal site
   Simple academic style (white background, clean sans font, minimal chrome).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 17px;
  line-height: 1.65;
  color: #3c4247;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

strong,
b {
  color: #111417;
  font-weight: 700;
}

a {
  color: #0969da;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Navbar ---------- */

.site-header {
  border-bottom: 1px solid #e1e4e8;
  background: #ffffff;
}

.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111417;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
  color: #000000;
}

.site-nav a {
  color: #3c4247;
  font-size: 1.05rem;
  margin-left: 22px;
  font-weight: 500;
}

.site-nav a:first-child {
  margin-left: 0;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: #111417;
}

/* ---------- Page layout ---------- */

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 20px 3rem;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #111417;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111417;
  margin: 1.6rem 0 0.8rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111417;
  margin: 0 0 0.25rem;
}

ul {
  padding-left: 1.4rem;
}

li {
  margin: 0.3rem 0;
}

/* ---------- Home / hero ---------- */

.hero {
  text-align: center;
  padding-top: 1.5rem;
}

.hero img.headshot {
  width: 230px;
  height: 230px;
  object-fit: cover;
  display: inline-block;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1.5rem 0 0.5rem;
}

.hero .subtitle {
  font-style: italic;
  font-size: 1.15rem;
  color: #3c4247;
  margin: 0 0 1.4rem;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

.btn-linkedin {
  background: #1c78c0;
}

.btn-github {
  background: #24292e;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero .email {
  color: #6a737d;
  font-size: 1.05rem;
}

/* ---------- Entries (Experience & Research) ---------- */

.entry {
  margin: 1.8rem 0;
}

.entry-meta {
  color: #6a737d;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.entry .authors {
  font-style: italic;
  margin: 0.1rem 0 0.5rem;
}

.entry .authors strong {
  font-style: normal;
}

.entry-images {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin: 0.6rem 0 1rem;
}

.entry h3 a {
  color: inherit;
  text-decoration: none;
}

.entry h3 a:hover {
  text-decoration: underline;
}

.entry-images img {
  height: 180px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  display: block;
}

.entry-image {
  max-width: 100%;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  margin: 0.6rem 0;
  display: block;
}

.skills-list {
  list-style: none;
  padding-left: 0;
}

.skills-list li {
  margin: 0.5rem 0;
}

/* ---------- Project cards ---------- */

.project-card {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 1.2rem 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.project-card .thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
  flex-shrink: 0;
}

.project-card .body {
  flex: 1;
  min-width: 0;
}

.project-card .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-card p {
  margin: 0.5rem 0;
}

.project-card .tech {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 0.82rem;
  color: #57606a;
  margin-top: 0.6rem;
}

.project-card .view-link {
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid #e1e4e8;
  text-align: center;
  font-size: 0.85rem;
  color: #586069;
  padding: 22px 16px;
  margin-top: 2rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 18px;
  }

  .project-card {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
