/* ─────────────────────────────────────────
   shtoshni.github.io — custom styles
   Link after main.css to override theme
───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ─── Variables ─── */
:root {
  --ink:          #1a1a1a;
  --ink-light:    #555;
  --accent:       #8b3a3a;
  --accent-hover: #5e1f1f;
  --rule:         #e0d8cf;
  --bg:           #faf8f5;
  --sidebar-bg:   #f3efe9;
  --font-serif:   'Spectral', Georgia, serif;
  --font-display: 'Cormorant Garamond', 'Palatino Linotype', serif;
}

/* ─── Base ─── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav ─── */
.masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.masthead a { color: var(--ink); }
.masthead a:hover { color: var(--accent); }
.masthead__menu-item--lg a {
  font-size: 1.15rem;
  font-weight: 600;
}

/* ─── Sidebar ─── */
.sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--rule);
  padding: 2rem 1.4rem;
}
.author__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.author__bio {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--ink-light);
  font-style: italic;
  margin-top: 0.2rem;
}
.author__urls a {
  font-size: 0.88rem;
  color: var(--ink-light);
  transition: color 0.15s;
}
.author__urls a:hover { color: var(--accent); }

/* ─── Main content ─── */
.page__inner-wrap {
  padding: 2.5rem 2.8rem 2rem;
  max-width: 800px;
  animation: fadeUp 0.4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Section headings ─── */
.page__title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--accent) !important;
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
h1.page__title { font-size: 2rem; }

/* anchor pilcrow */
.anchor-link {
  opacity: 0;
  font-size: 0.75em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
  font-family: var(--font-serif);
}
h2:hover .anchor-link,
.page__title:hover .anchor-link { opacity: 1; }

/* ─── Body text ─── */
.page__content p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

/* ─── Research subsection titles ─── */
.page__content strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ─── Links ─── */
.page__content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.page__content a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.page__content p > a[href*="arxiv"],
.page__content p > a[href*="aclanthology"] {
  font-style: italic;
}

/* ─── Research synthesis quote ─── */
.research-synthesis {
  font-style: italic;
  color: var(--ink-light);
  font-size: 0.97rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  margin-top: 0.5rem;
  line-height: 1.75;
}

/* ─── Section anchors ─── */
.section-anchor { scroll-margin-top: 80px; }

/* ─── Highlights table ─── */
.highlights-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.65;
}
.highlights-table tr { border-bottom: 1px solid var(--rule); }
.highlights-table tr:last-child { border-bottom: none; }
.highlights-table td { padding: 0.7rem 0; vertical-align: top; }
.highlight-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-light);
  white-space: nowrap;
  padding-right: 1.4rem;
  letter-spacing: 0.01em;
  width: 75px;
}

/* ─── Publications ─── */
.pub-list { display: flex; flex-direction: column; gap: 0; }

.pub-entry {
  display: flex;
  gap: 1.6rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.pub-entry:last-child { border-bottom: none; }

.pub-thumb { flex: 0 0 110px; width: 110px; }
.pub-thumb img {
  width: 100%;
  border-radius: 3px;
  display: block;
  opacity: 0.92;
  transition: opacity 0.15s;
}
.pub-thumb img:hover { opacity: 1; }

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

.pub-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.pub-title a { color: var(--ink); border-bottom: none !important; }
.pub-title a:hover { color: var(--accent) !important; border-bottom: none !important; }

.pub-authors {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 0.25rem;
  font-style: italic;
}
.pub-authors em { font-style: normal; font-weight: 500; color: var(--ink); }

.pub-venue {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.pub-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.pub-links a {
  font-size: 0.8rem;
  color: var(--ink-light) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  transition: all 0.15s;
  white-space: nowrap;
}
.pub-links a:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* ─── Thesis card ─── */
.thesis-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2rem 2.2rem;
  background: #fff;
  margin-bottom: 2rem;
}
.thesis-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.6rem;
}
.thesis-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.thesis-title a { color: var(--ink) !important; border-bottom: none !important; }
.thesis-title a:hover { color: var(--accent) !important; }
.thesis-meta {
  font-size: 0.92rem;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.thesis-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.thesis-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-light) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font-serif);
}
.thesis-links a:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* ─── Misc page icon column ─── */
.highlights-table td.highlight-date:has(i) {
  width: 36px;
  min-width: 36px;
  text-align: center;
  padding-right: 1rem;
  font-size: 1.1rem;
  color: var(--accent);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .page__inner-wrap {
    padding: 1.4rem 1rem;
    max-width: 100%;
  }

  .page__title {
    font-size: 1.5rem !important;
  }

  .page__content p {
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Sidebar stacks above content on mobile */
  .sidebar {
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 1rem;
  }

  /* Publications */
  .pub-entry { flex-direction: column; gap: 0.8rem; }
  .pub-thumb { width: 80px; }
  .pub-title { font-size: 1rem; }

  /* Thesis */
  .thesis-card { padding: 1.2rem 1rem; }
  .thesis-title { font-size: 1.25rem; }

  /* Highlights / Misc table — stack vertically */
  .highlights-table, .highlights-table tbody,
  .highlights-table tr, .highlights-table td { display: block; }
  .highlights-table td.highlight-date {
    padding-bottom: 0.2rem;
    padding-right: 0;
    width: auto;
    font-size: 0.85rem;
  }
  .highlights-table td.highlight-date:has(i) {
    text-align: left;
    font-size: 1rem;
  }

  /* Research synthesis quote */
  .research-synthesis {
    font-size: 0.92rem;
  }
}