/* ============================================================
   Arkaprava Sinha — minimalist academic theme
   Old-school serif, single narrow column, no boxes/capsules.
   ============================================================ */

:root {
  --bg:        #fffefb;   /* warm paper white */
  --text:      #1c1a17;
  --muted:     #6d685f;
  --accent:    #8a5a00;   /* dark gold / bronze */
  --accent-h:  #5e3d00;
  --rule:      #e6ddcd;   /* hairline */
  --name:      #161310;
}

[data-theme="dark"] {
  --bg:        #121212;   /* near black */
  --text:      #e8e6e1;
  --muted:     #9a948a;
  --accent:    #ffd700;   /* gold */
  --accent-h:  #ffe680;
  --rule:      #2a2a2a;
  --name:      #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.4rem 1.6rem 4.5rem;
}

/* ---------- links ---------- */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--accent-h); border-bottom-color: currentColor; }

/* ---------- top nav ---------- */
.topnav {
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
  color: var(--muted);
}
.topnav a { color: var(--muted); border: none; }
.topnav a:hover { color: var(--accent); }
.topnav a.here { color: var(--text); }
.topnav span { margin: 0 .5em; opacity: .5; }

/* ---------- header / intro ---------- */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  margin-bottom: 1.4rem;
}
.intro-text { flex: 0 1 auto; min-width: 0; }
.intro .photo {
  flex: 0 0 auto;
  width: 185px;
  height: 225px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.intro .loc {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 .55rem;
}
.intro .loc i { margin-right: .4em; opacity: .8; }
.intro h1 {
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .1em;
  color: var(--name);
  letter-spacing: .005em;
}
.intro .role {
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}
.intro .contact {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--muted);
}
.intro .contact a { color: var(--accent); }
.intro .contact .sep { color: var(--rule); margin: 0 .15em; }
.intro .contact i { margin-right: .25em; }

/* ---------- section headings ---------- */
h2 {
  font-size: .92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text);
  margin: 2.6rem 0 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.4rem 0 .3rem; }

p { margin: .7rem 0; }

/* small-caps inline mark used for paper names */
.sc { font-variant: small-caps; letter-spacing: .02em; }

/* bold research statement lead-in (Srijan-style) */
.lead {
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 1rem;
}

/* ---------- news (dated two-column) ---------- */
.news { margin-top: .4rem; }
.news-item { display: flex; gap: 1.2rem; margin: .55rem 0; }
.news-item .date {
  flex: 0 0 5.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.news-item .what { flex: 1 1 auto; }

/* ---------- publications ---------- */
.pub { margin: 1.6rem 0; display: flex; gap: 1.6rem; align-items: center; }
.pub .thumb { flex: 0 0 290px; height: 215px; }
.pub .thumb img,
.pub .thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: none;
  border-radius: 2px;
  display: block;
}
.pub .body { flex: 1 1 auto; }
.pub .title { font-weight: 600; color: var(--text); font-size: 1.32rem; line-height: 1.3; }
.pub .title a { color: var(--text); }
.pub .title a:hover { color: var(--accent); }
.pub .authors { font-size: .95rem; margin: .12rem 0; line-height: 1.35; }
.pub .venue { font-size: .95rem; font-style: italic; color: var(--muted); margin: .12rem 0; }
.pub .desc { font-size: .92rem; color: var(--muted); margin: .25rem 0 0; line-height: 1.4; }
.pub .links { font-size: .9rem; margin: .25rem 0 0; }
.me { font-weight: 600; }

/* horizontal divider matching Isola's "---" feel */
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4rem 0;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 3.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- theme toggle ---------- */
#theme-toggle {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 50;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  padding: .35rem;
  transition: color .15s ease;
}
#theme-toggle:hover { color: var(--accent); }

/* ---------- CV timeline (coderick14-style) ---------- */
.download a { border: none; }
.timeline {
  position: relative;
  margin: 1.4rem 0 .5rem;
  padding-left: 1.6rem;
  border-left: 2px solid var(--rule);
}
.tl-item { position: relative; margin: 0 0 2rem; }
.tl-item:last-child { margin-bottom: .5rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 7px);
  top: .5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.tl-date {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tl-title { font-weight: 600; font-size: 1.12rem; margin: .12rem 0 0; color: var(--text); }
.tl-sub { font-style: italic; color: var(--muted); margin: .05rem 0 0; }
.tl-loc { font-size: .9rem; color: var(--muted); margin: .05rem 0 0; }
.tl-loc i { margin-right: .35em; opacity: .8; }
.tl-desc { margin: .4rem 0 0; font-size: .97rem; }

/* ---------- responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 19px; }
  .wrap { padding: 1.6rem 1.1rem 3rem; }
  .intro { flex-direction: column; text-align: center; gap: 1rem; }
  .intro .photo { order: -1; width: 150px; height: 185px; }
  .intro .contact { line-height: 1.9; }
  .intro h1 { font-size: 1.9rem; }
  .pub { flex-direction: column; gap: .6rem; align-items: flex-start; }
  .pub .thumb { width: 100%; max-width: 360px; height: 210px; flex-basis: auto; }
  .news-item { flex-direction: column; gap: .1rem; }
  .news-item .date { flex-basis: auto; }
}
