/* Site stylesheet. Layout modeled on supreetkaur.com: sticky header, tinted hero band,
   papers list with abstract toggles, page-title bands with section pills, three-column footer. */

:root {
  --accent: #6b2d5c;
  --accent-dark: #4b1f41;
  --highlight: #d3808c;
  --ink: #221c26;
  --muted: #675f6a;
  --rule: #ece3e3;
  --surface: #faf5f4;
  --bg: #ffffff;
  --hero-bg: #f5e9e7;
  --hero-muted: #6e5c68;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 70rem;
  --read: 46rem;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); line-height: 1.1; margin: 0; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 14px; }
.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 28px; min-height: 64px; flex-wrap: wrap; }
.wordmark { font: 600 1.35rem/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.wordmark:hover { text-decoration: none; color: var(--accent); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 26px; font-size: .95rem; font-weight: 500; }
.site-nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--highlight); }

/* Home hero */
.hero { background: var(--hero-bg); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.6rem, 2rem + 2.6vw, 3.6rem); }
.hero-role { margin: 12px 0 0; font-size: 1.05rem; color: var(--hero-muted); }
.hero-role::before { content: ""; display: block; width: 44px; height: 3px; background: var(--highlight); margin-bottom: 14px; border-radius: 2px; }
.hero-bio { margin: 20px 0 0; max-width: 40rem; font-size: 1.05rem; line-height: 1.7; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; font-weight: 500; }
.hero-photo { margin: 0; }
.hero-photo .portrait { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 14px; box-shadow: 0 14px 36px rgba(107,45,92,.16); }

/* Home body */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 56px; }
.home-papers section + section { margin-top: 36px; }
.home-papers p { margin: 0 0 1em; }
.home-aside section + section { margin-top: 32px; }
.home-aside h2 { font-size: 1.25rem; }
.side-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
.side-list li { padding: 6px 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.side-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact p { margin: 0; font-size: .95rem; }
.more { margin: 18px 0 0; font-weight: 500; }

/* Inner pages */
.page-header { background: var(--surface); border-bottom: 1px solid var(--rule); padding: 44px 0 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.page-body { padding-top: 40px; padding-bottom: 64px; }
.page-body > * { max-width: var(--read); }
.page-body > section + section { margin-top: 44px; }
.section-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.section-index a { font-size: .86rem; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 13px; }
.section-index a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.expand-all { font: inherit; font-size: .88rem; font-weight: 500; color: var(--accent); cursor: pointer; background: var(--bg); border: 1.5px solid var(--accent); border-radius: 999px; padding: 6px 16px; }
.expand-all:hover, .expand-all[aria-pressed="true"] { background: var(--accent); color: #fff; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 0; }
.download-link { font-size: .92rem; font-weight: 500; color: #fff; background: var(--accent); border-radius: 999px; padding: 8px 18px; }
.download-link::before { content: "\2193 "; }
.download-link:hover { background: var(--accent-dark); text-decoration: none; }
.cv-frame { width: 100%; max-width: 60rem; height: 85vh; border: 1px solid var(--rule); border-radius: 10px; }

/* Papers */
.papers { list-style: none; margin: 0; padding: 0; }
.paper { padding: 16px 0; border-top: 1px solid var(--rule); line-height: 1.5; }
.paper:first-child { border-top: 0; padding-top: 4px; }
.paper-title { display: block; font-weight: 600; font-size: 1.02rem; color: var(--accent); }
span.paper-title { color: var(--ink); font-weight: 500; }
.paper-authors { font-size: .9rem; color: var(--muted); }
.paper-venue { font-size: .9rem; font-style: italic; color: #3e3642; }
.paper-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin-top: 4px; font-size: .88rem; }
.paper-link { font: inherit; font-weight: 500; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.paper-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.abs-toggle::before { content: "\25B8"; display: inline-block; width: .9em; font-size: .8em; transition: transform .15s ease; }
.abs-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.paper-abstract { margin: 10px 0 2px; padding: 2px 0 2px 16px; border-left: 3px solid var(--highlight); font-size: .93rem; line-height: 1.65; color: #332b36; }
.paper-abstract p { margin: 0; }
.abs-label { font-weight: 600; color: var(--ink); }
html.js .paper-abstract { display: none; }
html.js .paper-abstract.open { display: block; }
.paper-section h2 { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); font-size: .92rem; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px 40px; padding-top: 40px; padding-bottom: 28px; }
.footer-inner p { margin: 0; }
.footer-name { font: 600 1.15rem/1.2 var(--serif); color: var(--ink); margin-bottom: 4px !important; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-note { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--rule); font-size: .85rem; }
.footer-note p { margin: 0; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
  .hero-photo { order: -1; max-width: 300px; }
  .home-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-id { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  html { scroll-padding-top: 16px; }
  .site-header { position: static; }
  .header-inner { padding-top: 12px; padding-bottom: 10px; min-height: 0; }
  .site-nav { gap: 2px 18px; font-size: .92rem; }
  .page-header { padding: 30px 0 24px; }
  .page-body { padding-top: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
