/* reset */

/* YUI 3.5.0 reset.css (http://developer.yahoo.com/yui/3/cssreset/) */
html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea,select *{font-size:100%}legend{color:#000}#yui3-css-stamp.cssreset{display:none}
* {box-sizing: border-box;}

/* fonts */
@font-face {
  font-family: 'Carlito';
  src: url('/fonts/Carlito-Regular.ttf');
}
@font-face {
  font-family: 'Carlito';
  src: url('/fonts/Carlito-Bold.ttf');
  font-weight: bold;
}
@font-face {
  font-family: 'Carlito';
  src: url('/fonts/Carlito-Italic.ttf');
  font-style: italic;
}
@font-face {
  font-family: 'Carlito';
  src: url('/fonts/Carlito-BoldItalic.ttf');
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: 'Carlito';
  src: url('/fonts/Carlito-Italic.ttf');
  font-style: oblique;
}
@font-face {
  font-family: 'Carlito';
  src: url('/fonts/Carlito-BoldItalic.ttf');
  font-weight: bold;
  font-style: oblique;
}
.roboto { font-family: 'Roboto', sans-serif; }
.carlito { font-family: 'Carlito', sans-serif; }
.nunito { font-family: 'Nunito', sans-serif; }

/* main */
body {
  background: #fafafa;
  padding-top: 66px;
  font-size: clamp(14px, 3.8vw, 20px);
}

#top-of-site-pixel-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  top: 60px;
  left: 0;
}
#mid-of-site-pixel-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  top: 250px;
  left: 0;
}

.hiddenUnlessScrolled {display: none; overflow: hidden; height: 0; width: 0;}
.header-significantly-scrolled .hiddenUnlessScrolled {
  display: inline; overflow: auto; height: auto; width: auto;
}

#top {
  margin: 0;
  width: 100%;
  padding: 16px;
  height: 62px;
  position: fixed;
  z-index: 2;
  top: 0; left: 0; right: 0;
  background: #fafafa;
}

.header-not-at-top #top {
  box-shadow: 0 0 10px black;
  background: linear-gradient(0deg, #f2f2f0, white);
}

#topNav {
  display: flex;
  flex-direction: row;
}

#topNav a {
  flex-grow: 1;
  text-align: center;
  font-size: 120%;
}

#bottom {
  height: 52px;
}

#profile {
  margin: 0 auto 0 auto;
  width: 85vw;
  text-align: center;
  background: #ffdfee;
}

#profile.main {
  /* border-radius: 150%/10%; */
  border-radius: 200% 0% 100% 20%/50% 0% 310% 200%;
  padding: 16px 0 8px 0;
}

#profile.mini {
  border-radius: 4px;
  padding: 4px;
}

.main h1 {
  font-size: min(6vw, 40px);
  /* font-family: sans-serif; */
}
.main .roles {
  margin: 8px;
}
.main .contact {
  margin: 8px;
  font-family: monospace;
}

.mini .contact {
  font-family: monospace;
  font-size: 85%;
  margin: 4px;

}

#portrait {
  margin: 16px 0;
  width: 100%;
  text-align: center;
}
#portrait img {
  width: 40vw; height: 40vw;
  border-radius: 100%;
  overflow: hidden;
  max-width: 256;
  max-height: 256;
}

#details p {
  margin: 16px;
  line-height: 140%;
  /* text-align: justify; */
  /* text-indent: min(10vw, 60px); */
}

#details {
  max-width: 600px;
  margin: 0 auto;
}

#miniPortfolio {
  text-align: center;
  margin-top: 32px;
}

#miniPortfolio h1 {
  font-size: 140%;
  font-weight: bold;
}

.parenthetical {
  color: #555;
  font-style: italic;
}

.portfolio-card {
  width: 600px;
  max-width: 90vw;
  margin: 5vw 5vw 0 5vw;
  display: inline-block;
  border: 1px solid black;
  border-radius: 2px;
  box-shadow: 0px 2px 3px black;
  /* background: black; */
  /* border: 2px solid black; */
}
.portfolio-card:focus {
  filter: none;
}
.portfolio-card:active {
  filter: invert(1);
}

.portfolio-card a {
  text-decoration: none;
  color: #0e0e0e;
}

.portfolio-card h2 {
  font-size: 120%;
  padding: 8px 16px;
  /* font-weight: bold; */
  background: linear-gradient(0deg, #f2f2f0, white);
}
.portfolio-card:hover h2 {
  text-decoration: underline;
  background: white;
}

.portfolio-card img {
  max-width: 100%;
}

.portfolio-card:hover img {
  filter: brightness(1.2);
}

@media all and (min-width: 1000px) {
  .portfolio-card {
    margin: 2.5vw;
  }
  .portfolio-card h2 {
    font-size: 130%;
  }
}


h1#portfolioToggle {
  max-width: 600px;
  margin: 0 auto;
  display: none;
}

#portfolio p, #samples p, #resume p {
  margin: 16px;
  line-height: 140%;
  position: relative;
  /* text-align: justify; */
  /* text-indent: min(10vw, 60px); */
}

#portfolio p::before, #samples p::before {
  /* delete this eventually */
  content: "\00bb ";
  position: absolute;
  right: 100%;
  display: block;
}

#portfolio, #samples, #resume {
  max-width: 600px;
  margin: 0 auto;
}

#resume {
  text-align: center;
}
