:root { --ink: #111; --mute: #8a8a8a; --rule: #e6e6e6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font: 15px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mute); }
em { font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

header {
  display: flex; flex-wrap: wrap; gap: .25rem 2rem; align-items: baseline;
  padding: 1.4rem 1.6rem 0;
}
header .name { margin-right: auto; }
header nav { display: flex; gap: 1.1rem; }
header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

main { padding: 3rem 1.6rem 5rem; }

/* works grid: uniform cells, every image at equal area, centered */
.grid { display: grid; gap: 3rem 2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { display: block; }
.tile .frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.tile .fit { display: block; }
.tile img { display: block; width: 100%; height: auto; }
.tile .label { display: block; margin-top: .6rem; text-align: center; }
.tile:hover img { opacity: .85; }

/* work page */
.work { max-width: 1000px; margin: 0 auto; }
.work h1 { font-size: inherit; font-weight: normal; margin: 0 0 .6rem; }
.work .desc { max-width: 38em; margin: 0 0 3.5rem; }
.work .desc a { color: var(--mute); white-space: nowrap; }
.work .desc a:hover { color: var(--ink); }
figure { margin: 0 0 3.5rem; }
figure img { display: block; width: auto; height: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; }
figcaption { color: var(--mute); font-size: 13px; margin-top: .6rem; max-width: 46em; margin-left: auto; margin-right: auto; text-align: center; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; max-width: 40em; }
.list li { padding: .55rem 0; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list span { color: var(--mute); }

/* info */
.bio { max-width: 38em; }
.bio p { margin: 0 0 1.1em; }
.contact { margin-top: 2rem !important; }

@media (max-width: 600px) {
  header { padding: 1rem 1rem 0; }
  main { padding: 2rem 1rem 4rem; }
  .grid { grid-template-columns: 1fr; gap: 2.5rem; }
  figure img { max-height: none; }
}

.video .embed { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.index-title { font-size: inherit; font-weight: normal; color: var(--mute); margin: 0 0 2rem; }

.quote { max-width: 34em; margin: -2rem 0 3.5rem; padding: 0; }
.quote p { margin: 0 0 .5rem; }
.quote cite { font-style: normal; color: var(--mute); font-size: 13px; }

.bio a { text-decoration: underline; text-decoration-color: #c8c8c8; text-underline-offset: 3px; }
.bio a:hover { color: inherit; text-decoration-color: currentColor; }

.cv { max-width: 46em; }
.cv section { margin-bottom: 2.75rem; }
.cv h2 { font-size: inherit; font-weight: normal; color: var(--mute); margin: 0 0 .75rem; }
.cvlist { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.cvlist li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .3rem 0; }
.cvlist .yr { color: var(--mute); }
.cvlist a, .cv a { text-decoration: underline; text-decoration-color: #c8c8c8; text-underline-offset: 3px; }
@media (max-width: 600px) { .cvlist li { grid-template-columns: 4.5rem 1fr; gap: .75rem; } }
