/* mayureshraut.com: a plain, text-first research homepage.
   Accents: taxi yellow (Mumbai kaali-peeli), Gateway of India arch, Golden Gate + Sea Link footer. */
:root {
  --paper: #FBF9F4; --ink: #1A1A1A; --muted: #5F5B53; --rule: #E4DFD4;
  --link: #1F4E8C; --yellow: #FFC814; --gg: #C8452F;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --deva: "Tiro Devanagari Marathi", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #141414; --ink: #ECE8DF; --muted: #A39E94; --rule: #2C2A26; --link: #8DB4EA; --gg: #E5634A; }
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 400 17.5px/1.6 var(--serif); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: #1A1A1A; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
p { margin: 0 0 14px; }
h1, h2 { font-weight: 600; letter-spacing: -.01em; }

.col { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 18px; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; flex: none; }
.l-bg { fill: #1A1A1A; }
.l-m { font: 700 28px var(--mono); fill: var(--yellow); }
.l-cursor { fill: #FFFFFF; }
.top nav { display: flex; gap: 20px; font-size: 16px; }
.top nav a { color: var(--muted); }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Intro */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 36px; align-items: start; padding: 36px 0 8px; }
.intro h1 { font-size: 30px; margin: 0 0 4px; }
.tagline { font: 14px var(--mono); color: var(--muted); margin: 0 0 18px; }
.intro .bio > p:nth-of-type(2) { font-size: 20px; line-height: 1.5; }
.intro .bio { grid-row: 1; }
.deva { font: 400 19px var(--deva); color: var(--muted); margin-left: 8px; }
.contact { margin-top: 18px; }
.photo { position: relative; aspect-ratio: 4 / 5; margin-top: 6px; }
.photo::before { content: ""; position: absolute; inset: 0; translate: 6px 6px; background: var(--yellow); border-radius: 16px; }
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 16px; }

/* Sections */
main section { margin-top: 34px; }
main h2 { font-size: 21px; margin: 0 0 12px; }
.pagetitle { font-size: 30px; line-height: 1.2; margin: 36px 0 14px; }
.more { color: var(--muted); font-size: 16px; margin-top: 10px; }

/* Dated lists: news, writing, fixes */
.dated { list-style: none; margin: 0; padding: 0; }
.dated li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 5px 0; }
.when { font: 13px/2 var(--mono); color: var(--muted); white-space: nowrap; }

/* Papers and projects */
.items { list-style: none; margin: 0; padding: 0; }
.items > li { padding: 10px 0; }
ol.items > li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
.items .title { font-weight: 600; }
.items .byline, .items .desc, .items .abstract, .items .plinks { display: block; }
.items .byline { color: var(--muted); }
.items .abstract { font-size: 16px; margin: 4px 0; }
.items .plinks { font-size: 15.5px; }
.state { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--rule); padding: 1px 6px; margin-left: 4px; white-space: nowrap; }

.cite { display: inline; }
.cite summary { display: inline; color: var(--link); cursor: pointer; list-style: none; }
.cite summary::-webkit-details-marker { display: none; }
.cite[open] summary { text-decoration: underline; text-decoration-color: var(--yellow); }
.cite pre { margin: 8px 0; white-space: pre-wrap; word-break: break-word; }
.cite button { font: 13px var(--mono); background: none; border: 1px solid var(--rule); color: var(--ink); padding: 3px 10px; cursor: pointer; }
.cite button:hover { border-color: var(--yellow); }

/* Posts */
.postmeta { font: 13px var(--mono); color: var(--muted); margin: 36px 0 0; }
.post .pagetitle { margin-top: 6px; }
.post h2 { font-size: 22px; margin: 30px 0 10px; }
.post ul, .post ol { padding-left: 22px; }
.post li { margin-bottom: 6px; }
.post blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--yellow); color: var(--muted); }
code, pre { font: 14px var(--mono); }
code { background: var(--rule); padding: 1px 4px; }
pre { background: transparent; border: 1px solid var(--rule); border-left: 3px solid var(--yellow); padding: 12px; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* Footer: Golden Gate meets the Sea Link */
.foot { margin-top: 72px; padding-bottom: 32px; color: var(--muted); }
.route { display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto 8px; padding: 0 12px; }
.r-line { fill: none; stroke: var(--muted); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.r-gg { fill: none; stroke: var(--gg); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.r-bold { stroke-width: 1.6; }
.r-thin { stroke-width: .7; }
.r-water { fill: none; stroke: var(--muted); stroke-width: 1.1; opacity: .7; }
.r-rule { stroke: var(--rule); stroke-width: 1; }
.r-label { font: 17px var(--mono); fill: var(--muted); text-anchor: middle; letter-spacing: .02em; }
.r-deva { font: 21px var(--deva); fill: var(--ink); letter-spacing: 0; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 15px; }
.print-src { display: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .intro .bio { grid-row: auto; }
  .photo { width: 160px; grid-row: 1; }
  .dated li, ol.items > li { grid-template-columns: 1fr; gap: 0; }
  .r-label { font-size: 24px; } .r-deva { font-size: 28px; }
}

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --rule: #bbb; --link: #000; }
  body { font-size: 11pt; }
  .top nav, .route, .foot-row, .cite button, .photo::before { display: none; }
  .print-src { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  .items li, .dated li { break-inside: avoid; }
  .foot { margin-top: 24pt; }
}
