/* prithvidatla.com v6. Bobby's visual system (bobby.so) + Adi's structure (heyadi.dev). Inter 400, self-hosted. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
* { box-sizing: border-box; }
html { background: #fff; }
body {
  margin: 0;
  color: #171717;
  font: 400 .875rem/23px Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; font: inherit; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
    text-decoration-color: color-mix(in srgb, currentColor 20%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 1px; }
.muted { color: #808080; }

/* Adi's structure: a persistent side index. Bobby's look: no boxes, gray text. */
.side {
  position: fixed; top: 60px; left: 40px; width: 180px;
  display: flex; flex-direction: column; gap: 24px;
}
.side .name { text-decoration: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: #808080; text-decoration: none; width: fit-content; }
.side nav a:hover, .side nav a.on { color: #171717; }
.side nav a.on::before { content: "· "; margin-left: -10px; }
.side .where { color: #808080; font-size: .75rem; line-height: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* local time: reserve "12:00 pm" so filling it in shifts nothing (it ends the line anyway) */
.sf-time { display: inline-block; min-width: 7.2ch; }
footer .sf-time { min-width: 0; }
/* Spotify playlist rotation (ported from the old site's playline): small, grey, one line */
.side .play { margin-top: -18px; font-size: .75rem; line-height: 20px; }
.play .spot { display: flex; align-items: center; gap: 7px; color: #808080; text-decoration: none; max-width: 100%; }
.play .spot:hover, .play .spot:focus-visible { color: #171717; }
.play .spoticon { flex: none; display: block; width: 12px; height: 12px; }
.play .spoticon path { fill: currentColor; }
.play .playtext { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the side shows the time from 640px up, so the footer copy is for phones only */
@media (min-width: 640px) { footer .cond { display: none; } }

main { max-width: 580px; margin: 0 auto; padding: 60px 0 80px; }
main.wide { max-width: 760px; }

/* header */
.occupation { margin-top: 2px; color: #808080; }
.about { margin-top: 32px; line-height: 26px; }
.about p + p { margin-top: 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }

/* hero frame */
.hero { margin: 40px 0 0; }
.frame { display: block; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid #e8e8e8; background: #f6f6f6; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.caption { margin-top: 8px; color: #808080; display: flex; justify-content: space-between; gap: 16px; }

/* sections: Adi's "title + see all" header, Bobby's spacing */
.area { margin-top: 56px; scroll-margin-top: 40px; }
.area-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.area-head a { color: #808080; }
.area-ctx { color: #808080; margin-top: 2px; margin-bottom: 16px; }

/* list rows: title, one line, meta on the right */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rows a.row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; text-decoration: none; }
.rows .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 20%, transparent); }
.rows a.row:hover .t { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.rows .d { display: block; color: #808080; }
.rows .m { color: #808080; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* photo strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.strip .frame { aspect-ratio: 4/5; border-radius: 10px; }

/* Bobby's timeline */
.timeline { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 24px; }
.year { color: #808080; white-space: nowrap; font-variant-numeric: tabular-nums; }
.year.rep { color: transparent; }
.home .timeline li, .timeline.dated li { grid-template-columns: 120px minmax(0,1fr); }
.tl-h { margin: 28px 0 12px; font-size: inherit; font-weight: 400; color: #808080; }
.timeline.history { gap: 22px; margin-top: 14px; }
.timeline.history li { grid-template-columns: 150px minmax(0,1fr); }
.timeline.history h3 { margin: 0; font-size: inherit; font-weight: 400; }
.timeline.history .plain { margin: 4px 0 0; padding: 0; list-style: none; color: #555; }
.timeline.history .plain li { display: block; }
@media (max-width: 639px) { .timeline.history li { grid-template-columns: minmax(0,1fr); gap: 2px; } }

hr { width: 48px; margin: 56px 0 24px; border: 0; border-top: 1px solid #eee; }
footer { color: #808080; font-size: .75rem; line-height: 20px; }
.cond { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* Bobby's floating hover preview */
.preview { position: fixed; z-index: 10; top: 0; left: 0; width: 240px; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgb(0 0 0 / 10%);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px) scale(.98);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.7,.2,1), visibility 180ms; }
.preview.on { opacity: 1; visibility: visible; transform: none; }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bobby's line-by-line reveal (simplified) */
.reveal > * { opacity: 0; transform: translateY(4px); animation: rise 420ms cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal > * { animation: none; opacity: 1; transform: none; } .preview { transition: none; } }

/* Photographs page */
.crumb { color: #808080; margin-bottom: 24px; }
.crumb a { color: #808080; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 8px; }
.filters button { font: inherit; font-size: 12px; line-height: 20px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid #e8e8e8; background: #fff; color: #808080; cursor: pointer; }
.filters button.on { background: #171717; border-color: #171717; color: #fff; }
.series { margin-top: 48px; }
.series-head { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 32px; align-items: baseline; }
.series-ctx { color: #808080; margin: 2px 0 16px 70px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.grid figure { margin: 0; }
.grid .frame { aspect-ratio: 4/5; cursor: zoom-in; }
.grid .frame img { transition: transform 400ms cubic-bezier(.2,.7,.2,1); }
.grid .frame:hover img { transform: scale(1.02); }
.grid figcaption { margin-top: 6px; color: #808080; font-size: .75rem; line-height: 18px; display: flex; gap: 8px; }
.grid figcaption b { font-weight: 400; color: #b0b0b0; font-variant-numeric: tabular-nums; }

.frame picture { display: contents; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; background: #fff; padding: 2px 8px; z-index: 30; }
header h1 { margin-top: 0; }
/* name: Doto pixel face + technicolor decode on load (ported from prithvidatla.com main, index.html decodeName).
   Doto is monospaced, so the scramble never changes the line width: no layout shift. */
@font-face { font-family: Doto; font-style: normal; font-weight: 100 900; font-display: block;
  src: url(fonts/doto-900-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
h1.pixname { font-family: Doto, ui-monospace, monospace; font-weight: 900; font-size: 28px; line-height: 34px; height: 34px;
  letter-spacing: 1px; color: #171717; white-space: nowrap; margin-bottom: 4px; }
h1.pixname span { font: inherit; }
h1.pixname .pre { visibility: hidden; }
.avatar { display: block; width: 72px; height: 72px; margin-bottom: 24px; }
.avatar picture { display: contents; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline.gap { margin-top: 20px; }
.timeline { margin-top: 0; }
.strip.small { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.strip.small .frame { aspect-ratio: 1; border-radius: 8px; }
h1 + .area-ctx { margin-top: 2px; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.chips span { color: #b0b0b0; font-variant-numeric: tabular-nums; font-size: .75rem; }
.chapters { margin-top: 14px; }
.plain { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.more { margin-top: 12px; color: #808080; } .more a { color: #808080; }
.month h2 { margin-bottom: 10px; }
.month { margin-top: 36px; }
.series-head.top { margin-top: 8px; } .series-head.top h1 { margin: 0; }
.masonry { display: flex; gap: 12px; align-items: flex-start; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.masonry figure { margin: 0; }
.masonry .frame { cursor: zoom-in; border-radius: 10px; }
.masonry figcaption, .grid figcaption { margin-top: 6px; color: #808080; font-size: .75rem; line-height: 18px; display: flex; gap: 8px; }
.masonry figcaption b { font-weight: 400; color: #b0b0b0; font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; color: #808080; }
.pager a { color: #808080; }
.series[hidden] { display: none; }
/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgb(255 255 255 / 97%); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); border-radius: 8px; box-shadow: 0 8px 28px rgb(0 0 0 / 8%); }
.lightbox p { position: absolute; bottom: 24px; left: 24px; right: 24px; text-align: center; color: #808080; }
.lightbox button { position: absolute; font: inherit; font-size: 15px; color: #808080; background: none; border: 0; padding: 8px 12px; cursor: pointer; }
.lightbox button:hover { color: #171717; }
.lb-x { top: 16px; right: 16px; } .lb-prev, .lb-next { font-size: 22px !important; top: calc(50% - 20px); } .lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (max-width: 1199px) { body { font-size: .9375rem; line-height: 24px; } }
/* side nav stays on the side at every width from 640px up (Prithvi, Oct 24 5:20 PM PT) */
@media (max-width: 1080px) and (min-width: 640px) {
  .side { left: 24px; width: 150px; }
  main, main.wide { margin: 0 32px 0 200px; }
  main.wallmain { margin: 0 0 0 200px; }
}
@media (max-width: 639px) {
  .side { position: static; width: auto; padding: 24px 24px 0; gap: 10px; }
  .side nav { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .side nav a.on::before { content: none; }
  .side nav a.on { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ccc; }
  .side .where, .side .play { display: none; }
  main, main.wide { padding: 32px 24px 64px; }
  body.home .side .name { display: none; }
}
@media (max-width: 639px) {
  .strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .strip.small { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .timeline li { grid-template-columns: 52px minmax(0,1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .masonry { flex-direction: column; gap: 16px; } .masonry .col { display: contents; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 92px; }
  .lightbox { background: #fff; }
  .pager { flex-wrap: wrap; }
  .rows a.row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .rows .m { font-size: .75rem; }
  .series-head { grid-template-columns: 38px minmax(0,1fr); gap: 16px; }
  .series-head .muted.r { grid-column: 2; }
  .series-ctx { margin-left: 54px; }
  .timeline li { gap: 16px; }
  .caption { flex-direction: column; gap: 0; }
  .side nav { gap: 2px 12px; }
}

/* native notes */
.note h1 { margin-bottom: 4px; }
.note-meta { color: #808080; margin: 0 0 32px; font-variant-numeric: tabular-nums; }
.prose { overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { font-size: inherit; font-weight: 600; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose figcaption { margin-top: 6px; color: #808080; font-size: .75rem; line-height: 18px; }
.prose blockquote { border-left: 2px solid #e8e8e8; padding-left: 14px; color: #555; margin-left: 0; }
.prose pre { background: #f6f6f6; border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: .8125rem; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; font-size: .8125rem; }
.prose th, .prose td { border-bottom: 1px solid #eee; padding: 6px 10px 6px 0; text-align: left; vertical-align: top; }
.prose hr { margin: 32px 0; }
.prose figure .frame { border-radius: 10px; }
.prose figure img { height: auto; }
.prose mark { background: #fff3b0; }
.prose .footnote { font-size: .8125rem; color: #555; }
.note.gallery .prose { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.note.gallery .prose > :not(figure) { grid-column: 1 / -1; }
.note.gallery .prose figure { margin: 0; }
.note.gallery .prose figure .frame { aspect-ratio: 4/5; }
.note.gallery .prose figure img { height: 100%; }
.timeline.undated { margin-top: 12px; }
.timeline p.sub { margin: 4px 0 0; color: #555; }
.timeline li > div > p:first-child { margin: 0; }
.tl-h.first { margin-top: 0; }

/* photographs: one wall, no captions (Prithvi, Oct 24 4:55 PM PT) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.wallmain { max-width: none; margin: 0 0 0 260px; padding: 60px 0 0; }
main.wallmain > hr, main.wallmain > footer { margin-left: 0; margin-right: 40px; }
main.wallmain > hr { margin-top: 56px; }
main.wallmain > footer { padding-bottom: 64px; }
.wall { display: flex; flex-direction: column; gap: 3px; background: #fff; }
.wr { display: flex; gap: 3px; }
.wall .t { flex: 1 1 0; min-width: 0; position: relative; display: block; overflow: hidden; background: #ececec; cursor: zoom-in;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease; outline: none; }
.wall .t picture { display: contents; }
.wall .t img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wr > .t:first-child { transform-origin: left center; }
.wr > .t:last-child { transform-origin: right center; }
.wall .t:hover, .wall .t:focus-visible { transform: scale(1.08); z-index: 3; box-shadow: 0 18px 44px rgb(0 0 0 / 32%), 0 2px 8px rgb(0 0 0 / 18%); }
.wall .t:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #171717, 0 18px 44px rgb(0 0 0 / 32%); }
@media (hover: hover) and (pointer: fine) {
  .wall:has(.t:hover) .t:not(:hover) { filter: brightness(.78) saturate(.85); }
}
.wall.mini .t { cursor: pointer; }
.wall.mini .t:hover, .wall.mini .t:focus-visible { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .wall .t { transition: none; }
  .wall .t:hover, .wall .t:focus-visible { transform: none; }
}
.wlb { position: fixed; inset: 0; z-index: 30; background: rgb(12 12 12 / 96%); display: grid; place-items: center; touch-action: pan-y; }
.wlb[hidden] { display: none; }
.wlb picture { display: contents; }
.wlb img { max-width: calc(100vw - 144px); max-height: calc(100vh - 72px); width: auto; height: auto; box-shadow: 0 24px 80px rgb(0 0 0 / 60%); opacity: 0; transition: opacity 220ms ease; }
.wlb img.on { opacity: 1; }
.wlb button { position: absolute; font: inherit; font-size: 22px; line-height: 1; color: rgb(255 255 255 / 62%); background: none; border: 0; padding: 14px 18px; cursor: pointer; border-radius: 4px; }
.wlb button:hover { color: #fff; }
.wlb button:focus-visible { outline: 1px solid rgb(255 255 255 / 70%); color: #fff; }
.wlb-x { top: 14px; right: 16px; font-size: 30px !important; }
.wlb-p { left: 12px; top: 50%; transform: translateY(-50%); }
.wlb-n { right: 12px; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .wlb img { transition: none; } }
@media (max-width: 639px) {
  main.wallmain { margin: 0; padding: 20px 0 0; }
  main.wallmain > hr, main.wallmain > footer { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 639px) {
  .wall, .wr { gap: 2px; }
  .wlb img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .wlb-p, .wlb-n { top: auto; bottom: 18px; transform: none; }
}
/* wide pages: keep clear of the side nav between 1081px and 1200px */
@media (min-width: 1081px) and (max-width: 1200px) { main.wide { margin: 0 32px 0 240px; } }

/* photographs: a dark room (Prithvi, Oct 24 6:50 PM PT: "just make the photography page dark ... you develop photos in a dark room").
   Only /photographs/ (body.wallpage); every other page stays white. Grey text on #0b0b0b: nav #8c8c8c 5.9:1, active #f2f2f2 17.6:1 (WCAG AA). */
html:has(body.wallpage), body.wallpage { background: #0b0b0b; color-scheme: dark; }
body.wallpage { color: #e6e6e6; }
.wallpage .side .name, .wallpage .side nav a:hover, .wallpage .side nav a.on, .wallpage .side .play .spot:hover, .wallpage .side .play .spot:focus-visible { color: #f2f2f2; }
.wallpage .side nav a, .wallpage .side .play .spot, .wallpage .side .where, .wallpage footer { color: #8c8c8c; }
.wallpage hr { border-top-color: #262626; }
.wallpage a:focus-visible { outline-color: #f2f2f2; }
.wallpage .skip:focus { background: #0b0b0b; color: #f2f2f2; }
.wallpage .wall { background: #0b0b0b; }
.wallpage .wall .t { background: #161616; }
.wallpage .wall .t:hover { box-shadow: 0 22px 56px rgb(0 0 0 / 75%), 0 2px 10px rgb(0 0 0 / 55%); }
.wallpage .wall .t:focus-visible { box-shadow: 0 0 0 2px #0b0b0b, 0 0 0 4px #f2f2f2, 0 22px 56px rgb(0 0 0 / 75%); }
@media (hover: hover) and (pointer: fine) {
  .wallpage .wall:has(.t:hover) .t:not(:hover) { filter: brightness(.6) saturate(.85); }
}
@media (max-width: 639px) { .wallpage .side nav a.on { text-decoration-color: #5a5a5a; } }

/* career: one visible line per row, detail one click away in a native <details> (Prithvi, Oct 26 12:17 PM PT). No JS, no motion.
   summary hit area 44px tall; #666 on white is 5.7:1 (WCAG AA). Note links stay outside the summary. */
.timeline.history .more { margin: 0; color: #555; }
.timeline.history .more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 44px; color: #666; }
.timeline.history .more summary::-webkit-details-marker { display: none; }
.timeline.history .more summary::after { content: "\00a0+"; }
.timeline.history .more[open] summary::after { content: "\00a0\2013"; }
.timeline.history .more summary:hover { color: #171717; }
.timeline.history .more summary:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 1px; color: #171717; }
.timeline.history .more > .plain { margin: 0 0 6px; display: grid; gap: 6px; }
.timeline.history .more + .links { margin-top: 0; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media print { .timeline.history .more summary { display: none; } }
