/* style.css */
/* 1. Define light & dark theme vars on :root */

/* ────── Theme‑toggle icon ────── */
#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 2px solid var(--fg);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* half‑white/half‑black circle */
#theme-toggle::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: linear-gradient(90deg, #fff 50%, #000 50%);
  border-radius: 50%;
}

/* footer styling */
footer {
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  font-size: 14px;
  text-align: center;
  color: inherit;
}

/* ── Publication “cards” ── */
/* bottom of assets/css/style.css */

.pub-entry {
  margin: 1.5em 0;
  padding-left: 0.75em;
  border-left: 2px solid var(--fg);
  font-size: 0.9em;
}

.pub-title,
.pub-authors,
.pub-venue,
.pub-links {
  margin: 0.2em 0;
}

/* markdownify wraps your authors in <p>…</p>, so zero out its margin: */
.pub-authors p {
  margin: 0;
}

.pub-authors strong {
  font-weight: bold;
  /* your name will appear bold */
}

.pub-note {
  font-size: 0.9em;
  font-style: italic;
  margin-bottom: 0.2em;
  color: var(--fg);
}

.pub-links {
  display: flex;
  gap: 0.5em;
}

.pub-links a {
  color: var(--link);
  text-decoration: underline;
}

/* ─── Footer & language switcher ─── */
.site-footer {
  margin-top: 4em;
  /* space before footer */
  padding: 1em 0;
  text-align: center;
  border-top: 1px solid var(--fg);
}

.site-footer .lang-btn {
  display: inline-block;
  padding: 0.25em 0.75em;
  border: 2px solid var(--fg);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--fg);
  font-weight: bold;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.site-footer .lang-btn:hover {
  background: var(--fg);
  color: var(--bg);
}