/* supreetkaur.com stylesheet -------------------------------------------- */

:root {
  /* Palette: soft blush and plum. Change a shade here and it applies everywhere. */
  --accent: #6b2d5c;        /* plum: links, buttons, current menu item */
  --accent-dark: #4b1f41;   /* hover on filled buttons */
  --accent-soft: #f4e8f0;   /* highlighted reference */
  --highlight: #d3808c;     /* muted rose: thin accent lines */
  --ink: #221c26;
  --muted: #675f6a;
  --rule: #ece3e3;
  --surface: #faf5f4;       /* title bands and footer */
  --bg: #ffffff;
  --hero-bg: #f5e9e7;       /* home page band */
  --hero-ink: #2b2130;
  --hero-muted: #6e5c68;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wide: 70rem;          /* page container */
  --read: 46rem;          /* reading column */
  --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; }
h3 { font-size: 1.1rem; margin: 18px 0 6px; }

.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); }
.site-nav .nav-parvaaz {
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; padding: 5px 14px;
}
.site-nav .nav-parvaaz:hover { background: var(--accent); color: #fff; }

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

.hero { background: var(--hero-bg); color: var(--hero-ink); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { font-size: clamp(2.6rem, 2rem + 2.6vw, 3.6rem); font-weight: 500; }
.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; color: var(--hero-ink); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; font-weight: 500; }
.hero-links a { color: var(--accent); }
.hero-photo { margin: 0; }
.hero-photo .portrait {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; 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-aside section + section { margin-top: 32px; }
.home-aside h2 { font-size: 1.25rem; }
.affiliations ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; color: var(--muted); }
.affiliations li { padding: 6px 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.affiliations 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-intro { color: var(--muted); max-width: var(--read); margin: 12px 0 0; font-size: 1.02rem; }
.page-body { padding-top: 40px; padding-bottom: 64px; }
.page-body > * { max-width: var(--read); }
.page-cv .page-body > * { max-width: 60rem; }   /* dates sit at the right edge */
.page-body > section + section, .page-body > .statement 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: "↓ "; }
.download-link:hover { background: var(--accent-dark); text-decoration: none; }
.download-note { font-size: .88rem; color: var(--muted); }

/* Papers: compact vertical list ------------------------------------------ */

.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-note { font-size: .88rem; color: var(--muted); }
.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; }
.paper-coverage { color: var(--muted); }
.abs-toggle::before {
  content: "▸"; 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; }

/* Talks & Media ---------------------------------------------------------- */

.medium-video   { --tile: #8a3a5c; --tile-ink: #fdeef3; }  /* berry */
.medium-writing { --tile: #4e4a7e; --tile-ink: #f1effa; }  /* muted violet */
.medium-audio   { --tile: #efc36a; --tile-ink: #3a2a0a; }  /* soft gold */
.medium-policy  { --tile: #4f7a68; --tile-ink: #eef6f1; }  /* sage */

.media-list { list-style: none; margin: 0; padding: 0; }
.media-item {
  display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 0 22px;
  padding: 16px 0; border-top: 1px solid var(--rule);
}
.media-item:first-child { border-top: 0; padding-top: 4px; }
.media-cover {
  position: relative; display: flex; align-items: flex-start; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px; background: var(--tile); color: var(--tile-ink); padding: 11px 13px;
}
.media-cover:hover { text-decoration: none; }
.media-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-cover.has-image::after {
  content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}
.cover-name { font: 500 1.3rem/1.05 var(--serif); letter-spacing: -.01em; }
.cover-kind { position: absolute; left: 13px; bottom: 8px; z-index: 1; font-size: .72rem; font-weight: 600; opacity: .92; }
.has-image .cover-kind { color: #fff; }
.cover-play {
  position: absolute; z-index: 1; right: 10px; bottom: 9px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tile);
}
.cover-play::before {
  content: ""; position: absolute; left: 11px; top: 9px;
  border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.media-title { font-weight: 600; color: var(--ink); line-height: 1.4; }
.media-title:hover { color: var(--accent); }
.media-meta { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.media-desc { font-size: .93rem; margin: 6px 0 0; }
.media-links { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px; font-size: .88rem; }
.media-link { font-weight: 500; }

/* Paper explainer videos --------------------------------------------------- */

.section-intro { color: var(--muted); margin: -6px 0 16px; font-size: .95rem; }
.explainers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 20px;
}
.explainer-cover {
  --tile: var(--accent);
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px; background: #1b1a20;
}
.explainer-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.explainer-cover:hover img { transform: scale(1.03); }
.explainer-length {
  position: absolute; left: 8px; bottom: 8px; font-size: .72rem; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .6); border-radius: 4px; padding: 1px 6px;
}
.explainer-title { display: block; margin-top: 8px; font-weight: 600; font-size: .93rem; line-height: 1.35; color: var(--ink); }
.explainer-title:hover { color: var(--accent); }
.explainer-meta { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.video-link::before { content: "▶"; font-size: .7em; margin-right: 4px; position: relative; top: -1px; }

.video-dialog {
  width: min(1040px, 94vw); padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: #111015; color: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}
.video-dialog::backdrop { background: rgba(28, 16, 26, .78); }
.video-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; }
.video-dialog-title { margin: 0; font: 500 1.05rem/1.3 var(--serif); color: #f4ecef; }
.video-close {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.5rem; line-height: 1;
}
.video-close:hover { background: rgba(255, 255, 255, .22); }
.video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* CV --------------------------------------------------------------------- */

.cv-list, .cv-papers { list-style: none; margin: 0; padding: 0; }
.cv-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 4px 24px;
  padding: 7px 0; border-top: 1px solid var(--rule); line-height: 1.45;
}
.cv-list .cv-item:first-child { border-top: 0; }
.cv-dates { flex: none; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.cv-section h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 18px 0 4px; }
.cv-section h3:first-of-type { margin-top: 0; }
.cv-paper { padding: 7px 0 7px 1.2em; text-indent: -1.2em; border-top: 1px solid var(--rule); line-height: 1.5; }
.cv-paper:first-child { border-top: 0; }
.cv-paper a { font-weight: 500; }

/* Research statement: long-form reading in serif -------------------------- */

.statement { max-width: 42rem; }
.statement p { font: 1.12rem/1.72 var(--serif); margin: 0 0 1.05em; }
.statement strong { font-weight: 600; }
.cite { font-size: .68em; line-height: 0; margin-left: 1px; font-family: var(--sans); }
.references { font-family: var(--sans); }
.references h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 20px 0 6px; }
.refs { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: #332b36; }
.refs li { padding-left: 1.6em; text-indent: -1.6em; margin: 0 0 6px; line-height: 1.5; }
.refs.numbered li { padding-left: 2.4em; text-indent: -2.4em; }
.ref-n { display: inline-block; min-width: 2.4em; text-indent: 0; color: var(--muted); }
.refs li:target { background: var(--accent-soft); }

/* 404 */
.not-found-links { padding-left: 1.1em; }
.not-found-links li { margin: 6px 0; }

/* 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; }

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

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
  .hero-photo { order: -1; max-width: 560px; }
  .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; }   /* the wrapped menu is too tall to pin on phones */
  .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; }
  .media-item { grid-template-columns: 116px minmax(0, 1fr); gap: 0 14px; }
  .media-cover { padding: 7px 8px; border-radius: 7px; }
  .cover-name { font-size: .92rem; }
  .cover-kind { left: 8px; bottom: 4px; font-size: .66rem; }
  .cover-play { width: 20px; height: 20px; right: 6px; bottom: 5px; }
  .cover-play::before { left: 8px; top: 6px; border-left-width: 7px; border-top-width: 4px; border-bottom-width: 4px; }
  .cv-item { flex-direction: column; gap: 0; }
  .explainers { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .explainer-title { font-size: .86rem; }
  .video-dialog-title { font-size: .95rem; }
  .statement p { font-size: 1.06rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
