/*
  Anjani Kumari personal site.
  Palette is drawn from H&E histology staining: hematoxylin violet-black ink on
  warm paper, eosin rose for accents. Scale-bar dividers borrow the microscope
  scale-bar convention as the site's one signature motif; everything else stays quiet.
*/
:root {
  --paper: #FBF6EF;      /* warm paper background */
  --wash: #F4ECDF;       /* subtle darker wash for footer */
  --ink: #2C2440;        /* hematoxylin violet-black */
  --eosin: #C0527A;      /* eosin rose accent */
  --eosin-deep: #8E3355; /* eosin hover / strong text accent */
  --muted: #837A6E;      /* warm grey for secondary text */
  --line: #E5DACC;       /* hairlines */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;
  --measure: 66ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

/* Sticky top navigation */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a:focus-visible { color: var(--eosin-deep); }

main > section, main > footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 5vw, 3rem) 1rem;
}

/* Scale-bar divider: solid bar with end ticks and a mono micrometre label */
.scalebar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.scalebar .bar {
  width: 4.5rem;
  height: 3px;
  background: var(--ink);
  position: relative;
}
.scalebar .bar::before, .scalebar .bar::after {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--ink);
}
.scalebar .bar::before { left: 0; }
.scalebar .bar::after { right: 0; }
.scalebar .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 550; line-height: 1.15; }
h2 { font-size: 1.7rem; margin: 0 0 1.4rem; }

/* Hero */
.hero { padding-top: 4.5rem; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eosin-deep);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  margin: 0 0 1.2rem;
}
.hero h1 em { color: var(--eosin); }
.lede { font-size: 1.12rem; max-width: var(--measure); margin: 0 0 1.1rem; }
.looking, .mobility { color: var(--muted); font-size: 0.95rem; max-width: var(--measure); }
.looking .lead, .mobility .lead {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.facts li:not(:last-child)::after { content: " · "; color: var(--line); }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.5rem; }

.button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}
.button:hover, .button:focus-visible { background: var(--eosin-deep); }
.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.button.ghost:hover, .button.ghost:focus-visible {
  background: transparent;
  color: var(--eosin-deep);
  box-shadow: inset 0 0 0 1.5px var(--eosin-deep);
}

/* Experience entries */
.entry { margin-bottom: 2.4rem; }
.employer {
  font-size: 1.15rem;
  margin: 0;
}
.employer .loc {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.6rem;
}
.role { margin: 0.25rem 0 0.6rem; }
.role .title { font-weight: 700; }
.date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.role .date { margin-left: 0.5rem; }
.quiet { color: var(--muted); font-weight: 400; }

.entry ul, section ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0;
}
.entry li, section li { margin-bottom: 0.55rem; }
.entry li::marker { color: var(--eosin); }

/* Skills as a definition list */
.skills { margin: 0; }
.skills div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem 1.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.skills div:last-child { border-bottom: 1px solid var(--line); }
.skills dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eosin-deep);
}
.skills dd { margin: 0; font-size: 0.97rem; }

/* Education, publications, funding */
.plain { list-style: none; padding: 0; margin: 0.4rem 0; }
.plain li { margin-bottom: 0.7rem; padding-left: 1.2rem; text-indent: -1.2rem; }
.plain li::before {
  content: "—";
  color: var(--eosin);
  margin-right: 0.5rem;
  text-indent: 0;
}
.date { font-family: var(--mono); }
.funding { margin-top: 1.8rem; }

.pubs-note { color: var(--muted); font-size: 0.95rem; }
.pubs { font-size: 0.95rem; }
.pubs li::marker { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; }
.self { color: var(--eosin-deep); }
.footnote { color: var(--muted); font-size: 0.82rem; }

/* Footer / contact */
footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-bottom: 2.5rem !important;
  max-width: none !important;
}
footer .inner, footer > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
footer { padding-left: clamp(1.25rem, 5vw, 3rem); padding-right: clamp(1.25rem, 5vw, 3rem); }
.contact-line { font-size: 1.05rem; }
.contact-line a { color: var(--ink); }
.colophon {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 2.5rem;
}

/* Links */
a { color: var(--eosin-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--eosin); }
:focus-visible {
  outline: 2px solid var(--eosin-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-head { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .skills div { grid-template-columns: 1fr; }
}

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

/* Print: drop the chrome, keep the content */
@media print {
  .site-head, .cta, .scalebar { display: none; }
  body { font-size: 11pt; background: #fff; }
  main > section, main > footer { padding: 1rem 0; }
}
