/* Aaryan Bondre — minimal edition
   Off-white paper, small Helvetica, one soft photo. */

:root {
  --paper: #f3f2ee;
  --ink: #161616;
  --muted: #8a8984;
  --line: #dcdad3;
  --accent: #8ddcef;  /* light cyan */

  --wrap: 1080px;
  --side: clamp(20px, 5vw, 56px);
  --font: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* underline links that sit in running text */
.intro a, .inline a, .footer a, .list__head a, .k__link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .25s, color .2s;
}
.intro a:hover, .inline a:hover, .footer a:hover, .list__head a:hover, .k__link:hover {
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 100% no-repeat;
}

.muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  max-width: var(--wrap); margin: 0 auto;
  padding: 28px var(--side);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px;  /* links drop under the name on narrow phones */
}
.nav__name { font-weight: 500; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 28px); }
.nav__links a { color: var(--muted); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--side); }

/* ---------- photos ---------- */
.photo__frame { overflow: hidden; background: #e2e0da; }
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(.92) brightness(1.06);
  transition: opacity .8s ease, filter .6s ease;
}
.js .photo img { opacity: 0; }
.js .photo img.is-in { opacity: 1; }
.photo:hover img { filter: grayscale(.2) contrast(.95) brightness(1.04); }
.photo figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
/* home portrait: flips through pics/home (script.js) */
/* about: a collage of the same photos (generated by scripts/crop_photos.py) */
.collage {
  display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(3, 1fr);
  grid-auto-flow: dense; gap: 4px; aspect-ratio: 2100 / 800; background: var(--paper);
}
.collage img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.collage img { grid-area: var(--at); }  /* slot set per photo in about.html */
.cycle figcaption { font: 400 11px/1.4 var(--mono); min-height: 1.4em; }  /* only shows "paused" */
.cycle .photo__frame { cursor: pointer; position: relative; }
.js .photo .cycle__color { position: absolute; inset: 0; opacity: 0; filter: none; transition: opacity .35s ease; }
.js .photo.is-color .cycle__color { opacity: 1; }

/* ---------- home ---------- */
.intro {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.intro h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500; letter-spacing: -.045em; line-height: .95;
  margin-bottom: 18px;
}
.intro__line { font-size: 18px; margin-bottom: 28px; }
.intro__text > p:not(.intro__line) { max-width: 46ch; color: #3d3d3a; margin-bottom: 14px; }
.status { display: flex; align-items: flex-start; gap: 10px; }
.status .dot { margin-top: .6em; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}
.inline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; }

.list { padding-bottom: clamp(44px, 6vw, 72px); }
.list__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.list__head h2 { font-size: 15px; font-weight: 500; }
.list__head a { font-size: 13px; color: var(--muted); }

.row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  transition: padding .25s ease, color .2s;
}
.row__a, .row__c { color: var(--muted); font-size: 13px; padding-top: 2px; }
.row:hover { padding-left: 8px; }
.row:hover .row__b { color: var(--ink); }
.row:hover .row__a { color: var(--ink); }
.row:hover .row__b { background: linear-gradient(var(--accent), var(--accent)) 0 85% / 100% 40% no-repeat; }

/* ---------- inner pages (index style) ---------- */
:root { --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.inner { padding-top: clamp(16px, 4vw, 40px); padding-bottom: clamp(56px, 8vw, 96px); }
.phead {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--ink);
}
.phead h1 { font-size: 15px; font-weight: 500; }
.phead span, .c-no, .k { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.small { font-size: 13px; }

/* experience: company logos in the photo frames */
.fig--logo .photo__frame { display: grid; place-items: center; }
.fig--logo img { width: 60%; height: 44%; object-fit: contain; }
.fig--logo img[src*="adobe"] { height: 50%; }
.fig--logo img[src*="purdue"] { width: 82%; }

.cap {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 8px; font: 400 11px/1.4 var(--mono); color: var(--muted); text-transform: lowercase;
}

.c-cols { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(28px, 5vw, 56px); margin-top: 40px; }
.lead { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.28; letter-spacing: -.02em; margin-bottom: 20px; text-wrap: pretty; }
.c-text { columns: 2; column-gap: 32px; color: #3d3d3a; }
.c-text p { margin-bottom: 12px; break-inside: avoid; }

.facts div {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts--grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.facts--grid div:nth-last-child(2) { border-bottom: 1px solid var(--line); }

.now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--ink); }
.now > div { padding: 14px 20px 0 0; }
.skills { margin-top: 56px; }
.now__link {
  display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.now__link:hover { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 100% no-repeat; }
.dd-line { display: block; }
.np { position: relative; max-width: 340px; }
.np__head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.np__cover img { width: 56px; height: 56px; object-fit: cover; filter: grayscale(1) contrast(.95); transition: filter .4s; }
.np:hover .np__cover img { filter: none; }
.np__play {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 11px; cursor: pointer;
  position: relative; padding: 0; -webkit-appearance: none; appearance: none;
  transition: background .2s, border-color .2s;
}
.np__play:hover { background: var(--accent); border-color: var(--accent); }
.np__play svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.np__tracks { margin-top: 12px; counter-reset: trk; border-top: 1px solid var(--line); }
.np__tracks li { counter-increment: trk; border-bottom: 1px solid var(--line); }
.np__tracks a {
  position: relative; display: block; padding: 6px 0 6px 26px; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np__tracks a::before { content: counter(trk, decimal-leading-zero); position: absolute; left: 0; font: 400 11px/1.9 var(--mono); color: var(--muted); }
.np__tracks b { font-weight: 400; }
.np__tracks span { color: var(--muted); }
.np__tracks a:hover b { background: linear-gradient(var(--accent), var(--accent)) 0 85% / 100% 40% no-repeat; }
.lb { max-width: 340px; }
/* about: teams, logos styled like the album and poster (grey until hovered) */
.teams { display: flex; flex-direction: column; gap: 12px; }
.teams li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.teams img {
  width: 56px; height: 56px; padding: 8px; object-fit: contain; background: #e2e0da;
  filter: grayscale(1) contrast(.95); transition: filter .4s;
}
.teams li:hover img { filter: none; }
.teams img[src*="seahawks"], .teams img[src*="mariners"] { padding: 4px; }  /* less padding so these read at this size */

.lb__head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 56px; }
.lb__poster img { width: 38px; height: 56px; object-fit: cover; filter: grayscale(1) contrast(.95); transition: filter .4s; }
.lb:hover .lb__poster img { filter: none; }
.lb__list { margin-top: 12px; border-top: 1px solid var(--line); }
.lb__list li { border-bottom: 1px solid var(--line); }
.lb__list a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; }
.lb__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__r { flex: none; display: flex; gap: 10px; font: 400 11px/1.9 var(--mono); color: var(--muted); }
.lb__d { opacity: .8; min-width: 6ch; text-align: right; }
.lb__list a:hover .lb__t { background: linear-gradient(var(--accent), var(--accent)) 0 85% / 100% 40% no-repeat; }
.np__embed {
  /* preloaded behind the card so spotify lays out at full width; revealed on play */
  position: absolute; top: 0; left: 0; display: block; width: 100%; height: 152px;
  border: 0; border-radius: 12px; opacity: 0; pointer-events: none;
}
.np.is-playing { min-height: 152px; }
.np.is-playing .np__head { visibility: hidden; }
.np.is-playing .np__tracks { display: none; }
.np.is-playing .np__embed { opacity: 1; pointer-events: auto; transition: opacity .3s; }
.now__title { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.now__title:hover { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 100% no-repeat; }
.now__meta { font: 400 12px/1.5 var(--mono); color: var(--muted); margin-top: 2px; }

.c-role {
  display: grid; grid-template-columns: 40px 220px minmax(0, 1fr) 130px; gap: 28px;
  padding: 28px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.c-role:first-of-type { border-top: 0; padding-top: 8px; }
.c-role h2 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.c-when { font-size: 13px; color: var(--muted); text-align: right; }
.points { display: flex; flex-direction: column; gap: 8px; color: #3d3d3a; margin-top: 12px; }
.points li { position: relative; padding-left: 18px; }
.points li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }



/* experience: a short list of earlier roles */
.points a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.points a:hover { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 100% no-repeat; }
.earlier { margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--ink); }
.earlier > ul > li {
  display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 24px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.earlier b { display: block; font-weight: 500; }
.earlier li div > span { color: #3d3d3a; font-size: 14px; }

/* projects: plain list, each row links out */
.w-list { border-bottom: 1px solid var(--line); }
.w-row {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 170px 60px; gap: 8px 28px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.w-list .w-row:first-child { border-top: 0; padding-top: 12px; }
.w-main { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.w-main h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
/* the title link stretches over the whole row */
.w-main h2 a::after { content: ""; position: absolute; inset: 0; }
.w-row:hover h2 a { background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% 40% no-repeat; }
.w-main p { color: #3d3d3a; text-wrap: pretty; }
.w-main .w-stat { font: 400 12px/1.5 var(--mono); color: var(--muted); }
.w-meta, .w-year { font-size: 13px; color: var(--muted); padding-top: 6px; }
.w-year { text-align: right; }
.w-links { grid-column: 2; display: flex; gap: 20px; font-size: 13px; }
.w-links a {
  position: relative; z-index: 1;   /* sit above the stretched title link */
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.w-links a:hover, .w-more a:hover { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 100% no-repeat; }
.w-more { margin-top: 20px; font-size: 13px; color: var(--muted); }
.w-more a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

/* side pages: now, on display, skills */
.note { color: #3d3d3a; max-width: 52ch; }
.note a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.note a:hover { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 100% no-repeat; }

.sh-lead { margin: 28px 0 8px; }
.sh { margin-top: 48px; }
.sh-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.sh-head .k { margin: 0; }
.sh-head .now__link { margin: 0; }
.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(16px, 2.4vw, 28px); }
.sh-art { overflow: hidden; background: #e2e0da; }
.sh-art--film { aspect-ratio: 2 / 3; }
.sh-art--album { aspect-ratio: 1; }
.sh-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.95); transition: filter .5s; }
.sh-grid a:hover img { filter: none; }
.sh-t { margin-top: 10px; font-size: 14px; line-height: 1.35; }
.sh-grid a:hover .sh-t { background: linear-gradient(var(--accent), var(--accent)) 0 85% / 100% 40% no-repeat; }
.sh-by { margin-top: 2px; font: 400 11px/1.5 var(--mono); color: var(--muted); }
.sh-books { border-top: 1px solid var(--line); margin-top: -18px; }
.sh-books li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sh-books li span:last-child { font: 400 12px/1.9 var(--mono); color: var(--muted); }

.sk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(28px, 5vw, 56px); margin-top: 48px; }
.sk-group .k { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.sk-group li { color: #3d3d3a; line-height: 2; }

/* ---------- footer ---------- */
.footer {
  width: min(calc(100% - 2 * var(--side)), calc(var(--wrap) - 2 * var(--side)));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer .inline { margin: 0; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .intro__photo { order: -1; }
  .c-cols, .c-text, .facts--grid { grid-template-columns: 1fr; columns: 1; }
  .facts--grid div:nth-last-child(2) { border-bottom: 0; }
  .now { grid-template-columns: 1fr; }
  .collage { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); aspect-ratio: 6 / 5; }
  .collage img { grid-area: auto; }
  .collage .big { grid-area: auto / auto / span 2 / span 2; }
  .collage img:nth-child(n+16) { display: none; }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .now > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .c-role { grid-template-columns: 32px minmax(0, 1fr); gap: 12px 16px; }
  .c-role .fig, .c-role > div, .c-when { grid-column: 2; }
  .c-when { text-align: left; order: -1; }
  .w-row { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 16px; }
  .earlier > ul > li { grid-template-columns: 1fr; gap: 4px; }
  .earlier .c-when { text-align: left; order: -1; }
  .w-meta, .w-year, .w-links { grid-column: 2; padding-top: 0; text-align: left; }
  .w-year { display: none; }
  .row { grid-template-columns: 52px 1fr; }
  .row__c { display: none; }
  .nav { padding-top: 20px; padding-bottom: 20px; column-gap: 14px; }
  .nav__links { gap: 12px; }
}

@media (max-width: 380px) {
  .nav__links { gap: 10px; font-size: 14px; }
}

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

